Commit c3439919 authored by Margit Schubert-While's avatar Margit Schubert-While Committed by Linus Torvalds

[PATCH] prism54 fix wpa_supplicant frequency parsing

* This work fixes wpa_supplicant frequency parsing. iwlist eth0
* scan will now show channel and frequency.
parent 96ad68ac
...@@ -604,8 +604,8 @@ prism54_translate_bss(struct net_device *ndev, char *current_ev, ...@@ -604,8 +604,8 @@ prism54_translate_bss(struct net_device *ndev, char *current_ev,
current_ev = iwe_stream_add_point(current_ev, end_buf, &iwe, NULL); current_ev = iwe_stream_add_point(current_ev, end_buf, &iwe, NULL);
/* Add frequency. (short) bss->channel is the frequency in MHz */ /* Add frequency. (short) bss->channel is the frequency in MHz */
iwe.u.freq.m = channel_of_freq(bss->channel); iwe.u.freq.m = bss->channel;
iwe.u.freq.e = 0; iwe.u.freq.e = 6;
iwe.cmd = SIOCGIWFREQ; iwe.cmd = SIOCGIWFREQ;
current_ev = current_ev =
iwe_stream_add_event(current_ev, end_buf, &iwe, IW_EV_FREQ_LEN); iwe_stream_add_event(current_ev, end_buf, &iwe, IW_EV_FREQ_LEN);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment