svn commit: r345252 - head/sys/net80211

Andriy Voskoboinyk avos at FreeBSD.org
Mon Mar 18 02:40:23 UTC 2019


Author: avos
Date: Mon Mar 18 02:40:22 2019
New Revision: 345252
URL: https://svnweb.freebsd.org/changeset/base/345252

Log:
  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

Modified:
  head/sys/net80211/ieee80211_ht.c

Modified: head/sys/net80211/ieee80211_ht.c
==============================================================================
--- head/sys/net80211/ieee80211_ht.c	Sun Mar 17 22:26:50 2019	(r345251)
+++ head/sys/net80211/ieee80211_ht.c	Mon Mar 18 02:40:22 2019	(r345252)
@@ -1727,7 +1727,7 @@ ieee80211_ht_updateparams(struct ieee80211_node *ni,
 	const struct ieee80211_ie_htinfo *htinfo;
 
 	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_shortgi(ni);
 	htcap_update_ldpc(ni);
@@ -1880,7 +1880,7 @@ ieee80211_ht_updatehtcap(struct ieee80211_node *ni, co
 	struct ieee80211vap *vap = ni->ni_vap;
 
 	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_shortgi(ni);
 	htcap_update_ldpc(ni);


More information about the svn-src-all mailing list