[qca-nss-drv]: NAWDS wifi registration changes
Change-Id: I0ebacc65c1f70a54ddbec20d5350583c69015a9f
Signed-off-by: Radha krishna Simha Jiguru <rjiguru@codeaurora.org>
diff --git a/nss_wifi.c b/nss_wifi.c
index 04a0634..0f042d8 100644
--- a/nss_wifi.c
+++ b/nss_wifi.c
@@ -194,6 +194,7 @@
* Register Wifi with nss driver
*/
struct nss_ctx_instance *nss_register_wifi_if(uint32_t if_num, nss_wifi_callback_t wifi_callback,
+ nss_wifi_callback_t wifi_ext_callback,
nss_wifi_msg_callback_t event_callback, struct net_device *netdev, uint32_t features)
{
nss_assert((if_num >= NSS_MAX_VIRTUAL_INTERFACES) && (if_num < NSS_MAX_NET_INTERFACES));
@@ -202,6 +203,7 @@
nss_top_main.subsys_dp_register[if_num].ndev = netdev;
nss_top_main.subsys_dp_register[if_num].cb = wifi_callback;
+ nss_top_main.subsys_dp_register[if_num].ext_cb = wifi_ext_callback;
nss_top_main.subsys_dp_register[if_num].app_data = NULL;
nss_top_main.subsys_dp_register[if_num].features = features;
@@ -220,6 +222,7 @@
nss_top_main.subsys_dp_register[if_num].ndev = NULL;
nss_top_main.subsys_dp_register[if_num].cb = NULL;
+ nss_top_main.subsys_dp_register[if_num].ext_cb = NULL;
nss_top_main.subsys_dp_register[if_num].app_data = NULL;
nss_top_main.subsys_dp_register[if_num].features = 0;