aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2008-11-25 18:59:39 (GMT)
committerJouni Malinen <j@w1.fi>2008-11-25 18:59:39 (GMT)
commit95da9bbc364778c4cc72dff9d60f74bc1dbdfbb5 (patch)
tree0b4f8f385206380ccda00cf241acf8c3737c41e8 /hostapd/hostapd.c
parentffbcf648ed1d9cb1deb08d15ffa6960341829348 (diff)
downloadhostap-06-95da9bbc364778c4cc72dff9d60f74bc1dbdfbb5.zip
hostap-06-95da9bbc364778c4cc72dff9d60f74bc1dbdfbb5.tar.gz
hostap-06-95da9bbc364778c4cc72dff9d60f74bc1dbdfbb5.tar.bz2
nl80211: Add support for setting channel frequency and HT20 vs. HT40
This depends on a patch to Linux nl80211/mac80211 that has not yet been merged into wireless-testing. If that change is not present, the old mechanism (WEXT) will be used instead.
Diffstat (limited to 'hostapd/hostapd.c')
-rw-r--r--hostapd/hostapd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hostapd/hostapd.c b/hostapd/hostapd.c
index 937e48a..681ebbf 100644
--- a/hostapd/hostapd.c
+++ b/hostapd/hostapd.c
@@ -1553,7 +1553,8 @@ static int setup_interface(struct hostapd_iface *iface)
hostapd_hw_mode_txt(hapd->iconf->hw_mode),
hapd->iconf->channel, freq);
- if (hostapd_set_freq(hapd, hapd->iconf->hw_mode, freq)) {
+ if (hostapd_set_freq(hapd, hapd->iconf->hw_mode, freq,
+ hapd->iconf->secondary_channel)) {
printf("Could not set channel for kernel driver\n");
return -1;
}