diff --git a/sys/net80211/ieee80211_ht.c b/sys/net80211/ieee80211_ht.c index a3baaf339cf9..ad64de3b27dc 100644 --- a/sys/net80211/ieee80211_ht.c +++ b/sys/net80211/ieee80211_ht.c @@ -1585,16 +1585,14 @@ ieee80211_recv_action(struct ieee80211_node *ni, switch (ia->ia_action) { case IEEE80211_ACTION_HT_TXCHWIDTH: chw = frm[2] == IEEE80211_A_HT_TXCHWIDTH_2040 ? 40 : 20; - if (chw != ni->ni_chw) { - ni->ni_chw = chw; - ni->ni_flags |= IEEE80211_NODE_CHWUPDATE; - } IEEE80211_NOTE(vap, IEEE80211_MSG_ACTION | IEEE80211_MSG_11N, ni, - "%s: HT txchwidth, width %d (%s)", - __func__, chw, - ni->ni_flags & IEEE80211_NODE_CHWUPDATE ? - "new" : "no change"); + "%s: HT txchwidth, width %d%s", + __func__, chw, ni->ni_chw != chw ? "*" : ""); + if (chw != ni->ni_chw) { + ni->ni_chw = chw; + /* XXX notify on change */ + } break; case IEEE80211_ACTION_HT_MIMOPWRSAVE: IEEE80211_NOTE(vap, diff --git a/sys/net80211/ieee80211_node.h b/sys/net80211/ieee80211_node.h index 1935d0c4e35e..beeaac9afa3b 100644 --- a/sys/net80211/ieee80211_node.h +++ b/sys/net80211/ieee80211_node.h @@ -108,8 +108,6 @@ struct ieee80211_node { #define IEEE80211_NODE_XR 0x0008 /* Atheros WME enable */ #define IEEE80211_NODE_AR 0x0010 /* AR capable */ #define IEEE80211_NODE_BOOST 0x0080 -#define IEEE80211_NODE_PSUPDATE 0x0200 /* power save state changed */ -#define IEEE80211_NODE_CHWUPDATE 0x0400 /* 11n channel width change */ uint16_t ni_flags; /* special-purpose state */ #define IEEE80211_NODE_AUTH 0x0001 /* authorized for data */ #define IEEE80211_NODE_QOS 0x0002 /* QoS enabled */