Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Apr 2019 07:54:28 +0000 (UTC)
From:      Andriy Voskoboinyk <avos@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r345761 - in stable: 10/sys/net80211 11/sys/net80211 12/sys/net80211
Message-ID:  <201904010754.x317sSnL041385@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avos
Date: Mon Apr  1 07:54:27 2019
New Revision: 345761
URL: https://svnweb.freebsd.org/changeset/base/345761

Log:
  MFC r345252:
  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).
  
  Was checked with RTL8188EE (1T1R), STA mode - 'smps' word should disappear
  from 'ifconfig wlan0' output.

Modified:
  stable/10/sys/net80211/ieee80211_ht.c
Directory Properties:
  stable/10/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/11/sys/net80211/ieee80211_ht.c
  stable/12/sys/net80211/ieee80211_ht.c
Directory Properties:
  stable/11/   (props changed)
  stable/12/   (props changed)

Modified: stable/10/sys/net80211/ieee80211_ht.c
==============================================================================
--- stable/10/sys/net80211/ieee80211_ht.c	Mon Apr  1 07:46:41 2019	(r345760)
+++ stable/10/sys/net80211/ieee80211_ht.c	Mon Apr  1 07:54:27 2019	(r345761)
@@ -1542,7 +1542,7 @@ ieee80211_ht_updateparams(struct ieee80211_node *ni,
 	int ret = 0;
 
 	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);
 
@@ -1584,7 +1584,7 @@ ieee80211_ht_updatehtcap(struct ieee80211_node *ni, co
 	int htflags;
 
 	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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904010754.x317sSnL041385>