iwlwifi: return 0 for AMPDU_TX/RX_STOP request if NIC is going down
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Wed, 18 Mar 2009 04:51:43 +0000 (21:51 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Sat, 28 Mar 2009 00:12:57 +0000 (20:12 -0400)
commit5c2207c64209be2fe0d6b43ada2e41b28a948015
tree0cef2f9713b33626d21843b0a3cf0fd1062b7054
parent37fec3846a5a8b098e35c44ee858407bab0df43f
iwlwifi: return 0 for AMPDU_TX/RX_STOP request if NIC is going down

When receive IEEE80211_AMPDU_RX_STOP or IEEE80211_AMPDU_TX_STOP request
in iwl_mac_ampdu_action() from mac80211; check STATUS_EXIT_PENDING bit,
if NIC is on the way out, then return 0 back to mac80211, this can
prevent mac80211 report HW error incorrectly.

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-agn.c