replace rtw_ieee80211_ht_cap with ieee80211_ht_cap

port 042ca34b9ab19d0a52c3b01862a6c07fcb032e86
This commit is contained in:
Carlos Garces
2021-10-18 17:09:47 +02:00
parent b4be42500f
commit 04a730b326
11 changed files with 34 additions and 50 deletions

View File

@@ -425,12 +425,12 @@ void rtw_tdls_process_ht_cap(_adapter *padapter, struct sta_info *ptdls_sta, u8
u8 cur_ldpc_cap = 0, cur_stbc_cap = 0, cur_beamform_cap = 0;
/* Save HT capabilities in the sta object */
memset(&ptdls_sta->htpriv.ht_cap, 0, sizeof(struct rtw_ieee80211_ht_cap));
if (data && Length >= sizeof(struct rtw_ieee80211_ht_cap)) {
memset(&ptdls_sta->htpriv.ht_cap, 0, sizeof(struct ieee80211_ht_cap));
if (data && Length >= sizeof(struct ieee80211_ht_cap)) {
ptdls_sta->flags |= WLAN_STA_HT;
ptdls_sta->flags |= WLAN_STA_WME;
memcpy(&ptdls_sta->htpriv.ht_cap, data, sizeof(struct rtw_ieee80211_ht_cap));
memcpy(&ptdls_sta->htpriv.ht_cap, data, sizeof(struct ieee80211_ht_cap));
} else {
ptdls_sta->flags &= ~WLAN_STA_HT;
return;