qcacld-3.0: remove unused broadcast_sta_id from sta ctx

remove unused broadcast_sta_id from sta ctx.

Change-Id: I71265b214bfb1f0c7952f55527a57bfb02e5ad2d
CRs-Fixed: 2604330
This commit is contained in:
Abhishek Singh 2020-01-16 12:20:34 +05:30 • committed by nshrivas
commit fd74c68c85
2 changed files with 0 additions and 8 deletions

View file

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

View file

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