aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ieee802_11_ht.c
diff options
context:
space:
mode:
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>2015-09-08 09:46:22 (GMT)
committerJouni Malinen <j@w1.fi>2015-10-03 18:01:47 (GMT)
commit38d9048fa8d3c4374a53b29bea74b50002b42109 (patch)
tree25d3044c94c88634917df32c931528e174cfb73e /src/ap/ieee802_11_ht.c
parent967791fe6002d3e6d27d70d9c92ea85ac8cd643d (diff)
downloadhostap-38d9048fa8d3c4374a53b29bea74b50002b42109.zip
hostap-38d9048fa8d3c4374a53b29bea74b50002b42109.tar.gz
hostap-38d9048fa8d3c4374a53b29bea74b50002b42109.tar.bz2
Fix CSA related IEs order
Fix the order of CSA, eCSA, Secondary Channel Offset, and Wide Bandwidth Channel Switch Wrapper elements in Beacon and Probe Response frames. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Diffstat (limited to 'src/ap/ieee802_11_ht.c')
-rw-r--r--src/ap/ieee802_11_ht.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ap/ieee802_11_ht.c b/src/ap/ieee802_11_ht.c
index 33c1f6c..5eb1060 100644
--- 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)