]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k : Fix for displaying the channel number
authorMohammed Shafi Shajakhan <mshajakhan@atheros.com>
Fri, 1 Oct 2010 09:55:05 +0000 (15:25 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 5 Oct 2010 17:35:24 +0000 (13:35 -0400)
commit7801067d43337ac5e1653851728915d8674d7a3e
tree7b95545f4dabc63749965d42a943ea3b561bffda
parentca7094a71034420d925d57c7c894bbf80245b1f4
ath9k : Fix for displaying the channel number

In the ath9k debugging feature 'wiphy' the current channel used by the
station is incorrectly displayed.This is because the channels available
are sequentially mapped from numbers 0 to 37.This mapping cannot be
changed as the channel number is also used as an array index
          This fix solves the above problem by calculating the channel
number from center frequency.

Signed-off-by: Mohammed Shafi Shajakhan <mshajakhan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/debug.c