提交 1141455d 编写于 作者: M matthieu castet 提交者: Jeff Garzik

[PATCH] airo : fix channel number in scan

this patch display the correct channel number with iwlist scan
Signed-off-by: NMatthieu CASTET <castet.matthieu@free.fr>
Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
上级 3be034b6
......@@ -6852,7 +6852,10 @@ static inline char *airo_translate_scan(struct net_device *dev,
/* Add frequency */
iwe.cmd = SIOCGIWFREQ;
iwe.u.freq.m = le16_to_cpu(bss->dsChannel);
iwe.u.freq.m = frequency_list[iwe.u.freq.m] * 100000;
/* iwe.u.freq.m containt the channel (starting 1), our
* frequency_list array start at index 0...
*/
iwe.u.freq.m = frequency_list[iwe.u.freq.m - 1] * 100000;
iwe.u.freq.e = 1;
current_ev = iwe_stream_add_event(current_ev, end_buf, &iwe, IW_EV_FREQ_LEN);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册