OSDN Git Service

iwlwifi: check for valid band for channel info master-2009-05-22
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 22 May 2009 18:01:55 +0000 (11:01 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 22 May 2009 18:06:09 +0000 (14:06 -0400)
commita2e2322d83df82a57ba456cfa604c8b8f7b04670
tree8cf7894be6737eb134ee578ef876b4aa2254776b
parent086ed117c918f07fd40323ab5adc64c52ea7c1b8
iwlwifi: check for valid band for channel info

when display channel info in debugfs, always check for valid band
before access the pointer and display information

for 1000 NIC, it only support "bgn" mode, so there is no 5.2GHz channels
available to display.

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-debugfs.c