From 9a02daaa0b1e6898ee12d696d08d427c11e7de00 Mon Sep 17 00:00:00 2001 From: Kapil Bhatt Date: Tue, 12 Mar 2024 12:31:16 +0530 Subject: [PATCH] netdev: Change the interface index instead of the interface name As per the UMAC changes change the interface index instead of the interface name. Signed-off-by: Kapil Bhatt --- src/netdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/netdev.c b/src/netdev.c index 68f9c0e..d925303 100644 --- a/src/netdev.c +++ b/src/netdev.c @@ -141,7 +141,7 @@ int nrf_wifi_netdev_open(struct net_device *netdev) vif_info->state = 1; - memcpy(vif_info->ifacename, "wlan0", strlen("wlan0")); + vif_info->if_index = vif_ctx_lnx->if_idx; status = nrf_wifi_fmac_chg_vif_state(rpu_ctx_lnx->rpu_ctx, vif_ctx_lnx->if_idx, vif_info); @@ -177,7 +177,7 @@ int nrf_wifi_netdev_close(struct net_device *netdev) vif_info->state = 0; - memcpy(vif_info->ifacename, "wlan0", strlen("wlan0")); + vif_info->if_index = vif_ctx_lnx->if_idx; status = nrf_wifi_fmac_chg_vif_state(rpu_ctx_lnx->rpu_ctx, vif_ctx_lnx->if_idx, vif_info);