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)
commit8e0167a4bdce4adcea64d2197378673d332cda28
tree7b95545f4dabc63749965d42a943ea3b561bffda
parent9094a086f24bfb1d1f244883020c4d9453ffc0b6
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