diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index 1a4527473b69..046ec544f2ce 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -738,7 +738,6 @@ struct hdd_station_ctx { tSirPeerInfoRspParams ibss_peer_info; bool hdd_reassoc_scenario; int sta_debug_state; - uint8_t broadcast_sta_id; struct hdd_mon_set_ch_info ch_info; bool ap_supports_immediate_power_save; }; diff --git a/core/hdd/src/wlan_hdd_nan_datapath.c b/core/hdd/src/wlan_hdd_nan_datapath.c index 929df9e41a5c..7a3f92325638 100644 --- a/core/hdd/src/wlan_hdd_nan_datapath.c +++ b/core/hdd/src/wlan_hdd_nan_datapath.c @@ -651,7 +651,6 @@ int hdd_ndi_delete(uint8_t vdev_id, char *iface_name, uint16_t transaction_id) struct hdd_adapter *adapter; struct hdd_station_ctx *sta_ctx; struct hdd_context *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD); - uint8_t sta_id; if (!hdd_ctx) { hdd_err("hdd_ctx is null"); @@ -671,12 +670,6 @@ int hdd_ndi_delete(uint8_t vdev_id, char *iface_name, uint16_t transaction_id) return -EINVAL; } - sta_id = sta_ctx->broadcast_sta_id; - if (sta_id >= HDD_MAX_ADAPTERS) { - hdd_err("Error: Invalid sta id %u", sta_id); - return -EINVAL; - } - os_if_nan_set_ndp_delete_transaction_id(adapter->vdev, transaction_id); os_if_nan_set_ndi_state(adapter->vdev, NAN_DATA_NDI_DELETING_STATE);