iwlagn: improve RXON checking
authorJohannes Berg <johannes.berg@intel.com>
Thu, 21 Apr 2011 17:57:23 +0000 (10:57 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Sat, 30 Apr 2011 15:57:22 +0000 (08:57 -0700)
commitc914ac26caf462567078f9615ffcedf1962087f2
tree5ad48e9d361f8e38f8f37ab49bbd1b215d67d789
parentbbf18ff1be8a3c6567bc052e690189b55e16b8eb
iwlagn: improve RXON checking

The current RXON checking doesn't verify that
the channel is valid (or at least non-zero),
so add that. Also, add a WARN() so we get a
stacktrace, and capture a bitmask of errors
in order to capture all necessary information
in the warning itself (in case the previous
messages are snipped off.)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-core.c