aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Gringoli <francesco.gringoli@ing.unibs.it>2009-04-09 11:51:31 (GMT)
committerJouni Malinen <j@w1.fi>2009-04-20 09:19:34 (GMT)
commita93bf535809b4411185ad72ba6e08be67a3ea3b0 (patch)
tree56fc20050ee717ed49bcdf6bb292af32a51e5630
parent9e0be9c75c97902cf0f974736d0828ea6a5ad52a (diff)
downloadhostap-06-a93bf535809b4411185ad72ba6e08be67a3ea3b0.zip
hostap-06-a93bf535809b4411185ad72ba6e08be67a3ea3b0.tar.gz
hostap-06-a93bf535809b4411185ad72ba6e08be67a3ea3b0.tar.bz2
nl80211: Fix channel 14 use
nl80211 interface has a trivial bug that prevents it to work correctly with channel 14. Channel frequency is erroneously 2848 instead of 2484. To correct it just apply this patch. [Bug 308] (cherry picked from commit 5a0ffb5f1f587e1c36db32d964adb0c667033a52) Conflicts: src/drivers/driver_nl80211.c
-rw-r--r--hostapd/driver_nl80211.c2
-rw-r--r--src/drivers/driver_nl80211.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/hostapd/driver_nl80211.c b/hostapd/driver_nl80211.c
index d4802ac..2f386ec 100644
--- a/hostapd/driver_nl80211.c
+++ b/hostapd/driver_nl80211.c
@@ -1432,7 +1432,7 @@ static int phy_info_handler(struct nl_msg *msg, void *arg)
/* crude heuristic */
if (mode->channels[idx].freq < 4000)
- if (mode->channels[idx].freq == 2848)
+ if (mode->channels[idx].freq == 2484)
mode->channels[idx].chan = 14;
else
mode->channels[idx].chan = (mode->channels[idx].freq - 2407) / 5;
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index cf80c46..a7b351a 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -2519,7 +2519,7 @@ static int phy_info_handler(struct nl_msg *msg, void *arg)
/* crude heuristic */
if (mode->channels[idx].freq < 4000) {
- if (mode->channels[idx].freq == 2848)
+ if (mode->channels[idx].freq == 2484)
mode->channels[idx].chan = 14;
else
mode->channels[idx].chan =