diff options
Diffstat (limited to 'meta/packages/wpa-supplicant/files/use-channel.patch')
-rw-r--r-- | meta/packages/wpa-supplicant/files/use-channel.patch | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/meta/packages/wpa-supplicant/files/use-channel.patch b/meta/packages/wpa-supplicant/files/use-channel.patch deleted file mode 100644 index 337c0422cd..0000000000 --- a/meta/packages/wpa-supplicant/files/use-channel.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.holgerschurig.de/patcher.html | ||
4 | # | ||
5 | |||
6 | --- wpa_supplicant/driver_wext.c~use-channel | ||
7 | +++ wpa_supplicant/driver_wext.c | ||
8 | @@ -655,6 +655,12 @@ | ||
9 | } | ||
10 | |||
11 | |||
12 | +static const long frequency_list[] = | ||
13 | +{ | ||
14 | + 2412, 2417, 2422, 2427, 2432, 2437, 2442, | ||
15 | + 2447, 2452, 2457, 2462, 2467, 2472, 2484 | ||
16 | +}; | ||
17 | + | ||
18 | int wpa_driver_wext_get_scan_results(void *priv, | ||
19 | struct wpa_scan_result *results, | ||
20 | size_t max_size) | ||
21 | @@ -739,6 +745,11 @@ | ||
22 | case SIOCGIWFREQ: | ||
23 | if (ap_num < max_size) { | ||
24 | int div = 1000000, i; | ||
25 | + /* driver sent a channel, not a frequency */ | ||
26 | + if (iwe->u.freq.e == 0 && iwe->u.freq.m >= 1 && iwe->u.freq.m <= sizeof(frequency_list)) { | ||
27 | + results[ap_num].freq = frequency_list[iwe->u.freq.m-1]; | ||
28 | + break; | ||
29 | + } else | ||
30 | if (iwe->u.freq.e > 6) { | ||
31 | wpa_printf( | ||
32 | MSG_DEBUG, "Invalid freq " | ||