mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-09 06:43:06 +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
496a632c98
commit
d76cbb313d
10 changed files with 29 additions and 49 deletions
|
@ -1194,7 +1194,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;
|
||||
|
@ -1208,9 +1208,9 @@ u16 rtw_get_cur_max_rate(struct adapter *adapter)
|
|||
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);
|
||||
|
||||
/* bw_40MHz = (pht_capie->cap_info&IEEE80211_HT_CAP_SUP_WIDTH) ? 1:0; */
|
||||
/* cur_bwmod is updated by beacon, pmlmeinfo is updated by association response */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue