projects
/
mech_eap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix CSA related IEs order
[mech_eap.git]
/
src
/
ap
/
ieee802_11_vht.c
diff --git
a/src/ap/ieee802_11_vht.c
b/src/ap/ieee802_11_vht.c
index
6fda289
..
8d2c428
100644
(file)
--- a/
src/ap/ieee802_11_vht.c
+++ b/
src/ap/ieee802_11_vht.c
@@
-136,7
+136,8
@@
u8 * hostapd_eid_wb_chsw_wrapper(struct hostapd_data *hapd, u8 *eid)
u8 bw, chan1, chan2 = 0;
int freq1;
- if (!hapd->cs_freq_params.vht_enabled)
+ if (!hapd->cs_freq_params.channel ||
+ !hapd->cs_freq_params.vht_enabled)
return eid;
/* bandwidth: 0: 40, 1: 80, 2: 160, 3: 80+80 */