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-12@freebsd.org
Subject:   svn commit: r345761 - in stable: 10/sys/net80211 11/sys/net80211 12/sys/net80211
Message-ID:  <201904010754.x317sSYo041391@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/12/sys/net80211/ieee80211_ht.c
Directory Properties:
  stable/12/   (props changed)

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

Modified: stable/12/sys/net80211/ieee80211_ht.c
==============================================================================
--- stable/12/sys/net80211/ieee80211_ht.c	Mon Apr  1 07:46:41 2019	(r345760)
+++ stable/12/sys/net80211/ieee80211_ht.c	Mon Apr  1 07:54:27 2019	(r345761)
@@ -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);



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