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_ht.c
diff --git
a/src/ap/ieee802_11_ht.c
b/src/ap/ieee802_11_ht.c
index
33c1f6c
..
5eb1060
100644
(file)
--- a/
src/ap/ieee802_11_ht.c
+++ b/
src/ap/ieee802_11_ht.c
@@
-112,7
+112,8
@@
u8 * hostapd_eid_secondary_channel(struct hostapd_data *hapd, u8 *eid)
{
u8 sec_ch;
- if (!hapd->cs_freq_params.sec_channel_offset)
+ if (!hapd->cs_freq_params.channel ||
+ !hapd->cs_freq_params.sec_channel_offset)
return eid;
if (hapd->cs_freq_params.sec_channel_offset == -1)