]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] ipw2200: SIOCGIWFREQ ioctl returns frequency rather than channel
authorZhu Yi <yi.zhu@intel.com>
Mon, 21 Aug 2006 03:37:01 +0000 (11:37 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 29 Aug 2006 21:06:31 +0000 (17:06 -0400)
commitc580f67fd7fa9deee1f4cf6b86c694b880534a82
treeb2ff842c56d9746a56d1fb51d70d8521c9ae1598
parent01d478338ff3eff3bade043495f0fc9e57568876
[PATCH] ipw2200: SIOCGIWFREQ ioctl returns frequency rather than channel

The SIOCGIWFREQ ioctl fills the request structure's freq field by setting
the exponent to 0 and the mantissa to the current channel number. The
iwconfig tool works around this behaviour by looking up the frequency
from the channel table if a frequency below 1kHz is returned, other tools
(e.g. kwlaninfo) don't. According to the comment in the iwconfig source
the driver is supposed to return the frequency, not the channel number.

Signed-off-by: Ingo van Lil <inguin@gmx.de>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ipw2200.c