diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index 523846e6af..ec660d172e 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -772,7 +772,7 @@ struct hdd_fw_txrx_stats { * @in_use: Is the station entry in use? * @sta_id: Station ID reported back from HAL (through SAP). * Broadcast uses station ID zero by default. - * @staType: Type of station i.e. p2p client or infrastructure station + * @sta_type: Type of station i.e. p2p client or infrastructure station * @sta_mac: MAC address of the station * @peer_state: Current Station state so HDD knows how to deal with packet * queue. Most recent states used to change TLSHIM STA state. @@ -805,7 +805,7 @@ struct hdd_fw_txrx_stats { struct hdd_station_info { bool in_use; uint8_t sta_id; - eStationType staType; + eStationType sta_type; struct qdf_mac_addr sta_mac; enum ol_txrx_peer_state peer_state; bool is_qos_enabled; diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 3d6a38bb71..9c3c5e6097 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -1286,7 +1286,7 @@ static int calcuate_max_phy_rate(int mode, int nss, int ch_width, static void hdd_fill_station_info(struct hdd_station_info *stainfo, tSap_StationAssocReassocCompleteEvent *event) { - stainfo->staType = event->staType; + stainfo->sta_type = event->staType; stainfo->nss = event->chan_info.nss; stainfo->rate_flags = event->chan_info.rate_flags; stainfo->ampdu = event->ampdu; @@ -1911,8 +1911,8 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent, hdd_fill_station_info( &adapter->aStaInfo[staId], event); - hdd_debug("hdd_hostapd_sap_event_cb, StaID: %d, StaType: %d", - staId, adapter->aStaInfo[staId].staType); + hdd_debug("hdd_hostapd_sap_event_cb, StaID: %d, Type: %d", + staId, adapter->aStaInfo[staId].sta_type); } if (hdd_ipa_is_enabled(hdd_ctx)) { @@ -2018,7 +2018,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent, adapter->hdd_vdev, adapter->device_mode, event->staMac.bytes, - (adapter->aStaInfo[event->staId].staType + (adapter->aStaInfo[event->staId].sta_type == eSTA_TYPE_P2P_CLI)); if (ret) hdd_err("Peer object "MAC_ADDRESS_STR" add fails!",