Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147390408
D55717.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
824 B
Referenced Files
None
Subscribers
None
D55717.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
@@ -34,6 +34,7 @@
#include <sys/param.h>
#include <sys/kernel.h>
+#include <sys/libkern.h>
#include <sys/malloc.h>
#include <sys/systm.h>
#include <sys/endian.h>
@@ -2038,11 +2039,11 @@
}
/* CCFS1 > 0 and | CCFS1 - CCFS0 | = 8 */
- if (ni->ni_vht_chan2 > 0 && (ni->ni_vht_chan2 - ni->ni_vht_chan1) == 8)
+ if (ni->ni_vht_chan2 > 0 && abs(ni->ni_vht_chan2 - ni->ni_vht_chan1) == 8)
can_vht160 = can_vht80 = true;
/* CCFS1 > 0 and | CCFS1 - CCFS0 | > 16 */
- if (ni->ni_vht_chan2 > 0 && (ni->ni_vht_chan2 - ni->ni_vht_chan1) > 16)
+ if (ni->ni_vht_chan2 > 0 && abs(ni->ni_vht_chan2 - ni->ni_vht_chan1) > 16)
can_vht80p80 = can_vht80 = true;
/* CFFS1 == 0 */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 11, 2:16 PM (2 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29426312
Default Alt Text
D55717.diff (824 B)
Attached To
Mode
D55717: net80211: fix VHT160/80P80/80 chanwidth selection in the "40-" case
Attached
Detach File
Event Timeline
Log In to Comment