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
此提交包含在:
Rahul Gusain
2022-06-07 11:37:14 +05:30
提交者 Madan Koyyalamudi
父節點 ffcde23331
當前提交 bfc2c02560
共有 7 個檔案被更改,包括 74 行新增39 行删除

查看文件

@@ -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);