qcacld-3.0: Remove the dependency on NDI name
Currently in driver, NAN Data Interface can be created with only name "aware_data" which creates dependency on interface name. To remove the dependency, the interface is created now by name provided by Wifi-HAL. For this, interface is created in STA mode with name provided by WiFi-HAl. While processing vendor cmd QCA_NL80211_VENDOR_SUBCMD_NDP, given ifname is searched in adapter list and mode is changed to NDI. CRs-Fixed: 3196179 Change-Id: I62dd512f8a7de4c69a53babf3112942d348bf3b6
This commit is contained in:

committed by
Madan Koyyalamudi

父節點
ffcde23331
當前提交
bfc2c02560
@@ -784,6 +784,7 @@ struct nan_datapath_host_event {
|
||||
* request processing is complete
|
||||
* @ndi_open: HDD callback for creating the NAN Datapath Interface
|
||||
* @ndi_start: HDD callback for starting the NAN Datapath Interface
|
||||
* @ndi_set_mode: HDD callback for setting the adapter mode to NDI
|
||||
* @ndi_close: HDD callback for closing the NAN Datapath Interface
|
||||
* @ndi_delete: HDD callback for deleting the NAN Datapath Interface
|
||||
* @drv_ndi_create_rsp_handler: HDD callback for handling NDI interface creation
|
||||
@@ -804,6 +805,7 @@ struct nan_callbacks {
|
||||
uint32_t type, void *msg);
|
||||
void (*ucfg_nan_request_process_cb)(void *cookie);
|
||||
int (*ndi_open)(const char *iface_name, bool is_add_virtual_iface);
|
||||
int (*ndi_set_mode)(const char *iface_name);
|
||||
int (*ndi_start)(const char *iface_name, uint16_t);
|
||||
void (*ndi_close)(uint8_t);
|
||||
int (*ndi_delete)(uint8_t, const char *iface_name, uint16_t transaction_id);
|
||||
|
@@ -604,6 +604,7 @@ int ucfg_nan_register_hdd_callbacks(struct wlan_objmgr_psoc *psoc,
|
||||
}
|
||||
|
||||
psoc_obj->cb_obj.ndi_open = cb_obj->ndi_open;
|
||||
psoc_obj->cb_obj.ndi_set_mode = cb_obj->ndi_set_mode;
|
||||
psoc_obj->cb_obj.ndi_start = cb_obj->ndi_start;
|
||||
psoc_obj->cb_obj.ndi_delete = cb_obj->ndi_delete;
|
||||
psoc_obj->cb_obj.ndi_close = cb_obj->ndi_close;
|
||||
|
Reference in New Issue
Block a user