]> asedeno.scripts.mit.edu Git - linux.git/commit
iwlwifi: mvm: Do not return an error value on HW restart
authorIlan Peer <ilan.peer@intel.com>
Mon, 14 Jan 2019 13:57:44 +0000 (15:57 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 14 Feb 2019 09:29:51 +0000 (11:29 +0200)
commit44135b7c53d4d7199de3e1cf6e850996325f4da1
treeeabaf2c1e3ab25b108cbb71c341a84ab622e9647
parent69e508b44d5c84cf48cea41344cf9a0584484e31
iwlwifi: mvm: Do not return an error value on HW restart

When HW restart is requested but not started yet, commands would not
be sent to the FW, and some function calls would return an error. In
case of iwl_mvm_mac_sta_state() returning an error value when a
station is removed can lead to an unneeded warning in
__sta_info_destroy_part2().

Handle this by setting the return value to 0, in case HW restart is
in progress.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c