Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151467254
D47857.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
664 B
Referenced Files
None
Subscribers
None
D47857.id.diff
View Options
diff --git a/sys/net80211/ieee80211_ht.c b/sys/net80211/ieee80211_ht.c
--- a/sys/net80211/ieee80211_ht.c
+++ b/sys/net80211/ieee80211_ht.c
@@ -2595,11 +2595,15 @@
static int
ht_recv_action_ht_txchwidth(struct ieee80211_node *ni,
- const struct ieee80211_frame *wh,
- const uint8_t *frm, const uint8_t *efrm)
+ const struct ieee80211_frame *wh __unused,
+ const uint8_t *frm, const uint8_t *efrm __unused)
{
int chw;
+ /* If 20/40 is not supported the chw cannot change. */
+ if ((ni->ni_htcap & IEEE80211_HTCAP_CHWIDTH40) == 0)
+ return (0);
+
chw = (frm[2] == IEEE80211_A_HT_TXCHWIDTH_2040) ?
IEEE80211_STA_RX_BW_40 : IEEE80211_STA_RX_BW_20;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 9, 2:28 PM (4 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31161925
Default Alt Text
D47857.id.diff (664 B)
Attached To
Mode
D47857: net80211: HT: check for feature support in ht_recv_action_ht_txchwidth()
Attached
Detach File
Event Timeline
Log In to Comment