net80211: correct check for SMPS node flags updates
Update node flags when driver supports SMPS, not when it is disabled or in dynamic mode ((iv_htcaps & HTCAP_SMPS) != 0). Checked with RTL8188EE (1T1R), STA mode - 'smps' word should disappear from 'ifconfig wlan0' output. MFC after: 2 weeks
This commit is contained in:
parent
1f0493ec0f
commit
f35b8451ba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=345252
@ -1727,7 +1727,7 @@ ieee80211_ht_updateparams(struct ieee80211_node *ni,
|
|||||||
const struct ieee80211_ie_htinfo *htinfo;
|
const struct ieee80211_ie_htinfo *htinfo;
|
||||||
|
|
||||||
ieee80211_parse_htcap(ni, htcapie);
|
ieee80211_parse_htcap(ni, htcapie);
|
||||||
if (vap->iv_htcaps & IEEE80211_HTCAP_SMPS)
|
if (vap->iv_htcaps & IEEE80211_HTC_SMPS)
|
||||||
htcap_update_mimo_ps(ni);
|
htcap_update_mimo_ps(ni);
|
||||||
htcap_update_shortgi(ni);
|
htcap_update_shortgi(ni);
|
||||||
htcap_update_ldpc(ni);
|
htcap_update_ldpc(ni);
|
||||||
@ -1880,7 +1880,7 @@ ieee80211_ht_updatehtcap(struct ieee80211_node *ni, const uint8_t *htcapie)
|
|||||||
struct ieee80211vap *vap = ni->ni_vap;
|
struct ieee80211vap *vap = ni->ni_vap;
|
||||||
|
|
||||||
ieee80211_parse_htcap(ni, htcapie);
|
ieee80211_parse_htcap(ni, htcapie);
|
||||||
if (vap->iv_htcaps & IEEE80211_HTCAP_SMPS)
|
if (vap->iv_htcaps & IEEE80211_HTC_SMPS)
|
||||||
htcap_update_mimo_ps(ni);
|
htcap_update_mimo_ps(ni);
|
||||||
htcap_update_shortgi(ni);
|
htcap_update_shortgi(ni);
|
||||||
htcap_update_ldpc(ni);
|
htcap_update_ldpc(ni);
|
||||||
|
Loading…
Reference in New Issue
Block a user