projects
/
wpasupplicant
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c396531
)
nl80211: Fix channel 14 use
author
Francesco Gringoli
<francesco.gringoli@ing.unibs.it>
Thu, 9 Apr 2009 11:51:31 +0000
(14:51 +0300)
committer
Jouni Malinen
<j@w1.fi>
Thu, 9 Apr 2009 11:51:31 +0000
(14:51 +0300)
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]
src/drivers/driver_nl80211.c
patch
|
blob
|
history
diff --git
a/src/drivers/driver_nl80211.c
b/src/drivers/driver_nl80211.c
index
76de2bc
..
db39f70
100644
(file)
--- a/
src/drivers/driver_nl80211.c
+++ b/
src/drivers/driver_nl80211.c
@@
-1720,7
+1720,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;