Skip to content

Commit

Permalink
netdev: Change the interface index instead of the interface name
Browse files Browse the repository at this point in the history
As per the UMAC changes change the interface index
instead of the interface name.

Signed-off-by: Kapil Bhatt <[email protected]>
  • Loading branch information
kapbh committed Mar 14, 2024
1 parent 2f033af commit 9a02daa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9a02daa

Please sign in to comment.