mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 08:34:20 +00:00
rtl8188eu: Replace rtw_ieee80211_ht_cap with standard kernel version
As shown in the previous commits, keeping alignment beetween the private header and the kernel version is a problem. Solve the issue by using the kernel version. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
5e6362f3da
commit
8eb572bc42
10 changed files with 29 additions and 48 deletions
|
@ -1007,7 +1007,7 @@ u16 rtw_get_cur_max_rate(struct adapter *adapter)
|
|||
struct registry_priv *pregistrypriv = &adapter->registrypriv;
|
||||
struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
|
||||
struct wlan_bssid_ex *pcur_bss = &pmlmepriv->cur_network.network;
|
||||
struct rtw_ieee80211_ht_cap *pht_capie;
|
||||
struct ieee80211_ht_cap *pht_capie;
|
||||
u8 rf_type = 0;
|
||||
u8 bw_40MHz = 0, short_GI_20 = 0, short_GI_40 = 0;
|
||||
u16 mcs_rate = 0;
|
||||
|
@ -1025,9 +1025,9 @@ u16 rtw_get_cur_max_rate(struct adapter *adapter)
|
|||
if (pmlmeext->cur_wireless_mode & (WIRELESS_11_24N|WIRELESS_11_5N)) {
|
||||
p = rtw_get_ie(&pcur_bss->IEs[12], _HT_CAPABILITY_IE_, &ht_ielen, pcur_bss->IELength-12);
|
||||
if (p && ht_ielen > 0) {
|
||||
pht_capie = (struct rtw_ieee80211_ht_cap *)(p+2);
|
||||
pht_capie = (struct ieee80211_ht_cap *)(p+2);
|
||||
|
||||
memcpy(&mcs_rate, pht_capie->supp_mcs_set, 2);
|
||||
memcpy(&mcs_rate , pht_capie->mcs.rx_mask, 2);
|
||||
|
||||
/* cur_bwmod is updated by beacon, pmlmeinfo is updated by association response */
|
||||
bw_40MHz = (pmlmeext->cur_bwmode && (HT_INFO_HT_PARAM_REC_TRANS_CHNL_WIDTH & pmlmeinfo->HT_info.infos[0])) ? 1 : 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue