iwlwifi: warn when send tx power settings during scan
authorStanislaw Gruszka <sgruszka@redhat.com>
Mon, 25 Oct 2010 08:34:50 +0000 (10:34 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Nov 2010 18:24:22 +0000 (13:24 -0500)
commit4beeba7dc59cc10d6a47346c857d1a64a9ec9642
tree41c4c1fb9cc2c65840f3b0beb4ef9ce329817133
parentc7317e41df30c7e04dca46360e5ebb0cb36dda45
iwlwifi: warn when send tx power settings during scan

Add WARN_ONCE when scanning is pending. Use STATUS_SCAN_HW bit since we
can have scan canceled or completed but STATUS_SCANNING bit still set.

v1 -> v2: replace EIO to EAGAIN

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-3945.c
drivers/net/wireless/iwlwifi/iwl-4965.c
drivers/net/wireless/iwlwifi/iwl-agn-lib.c