]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iwlwifi: mvm: always reconfigure last MCC on init
authorArik Nemtsov <arik@wizery.com>
Mon, 23 Mar 2015 12:32:53 +0000 (14:32 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 2 Apr 2015 06:26:46 +0000 (09:26 +0300)
commitb6e160ab15c203fe77d13a121081b1a9bce7cbfe
treea8058247cf9a81c8aa2a07081ddf460683c36006
parent484b3d13b4ac3d721f3479433ad82100e1277580
iwlwifi: mvm: always reconfigure last MCC on init

Currently the last found MCC is reconfigured only in the recovery flow.
But it should always be used when available, for the ifdown/up or
RF-Kill/CT-Kill scenarios.
While at it, fix a couple of bugs in the init-from-last-MCC flow. Return
an error value when a current MCC is not found. Pass on the regdomain to
cfg80211 only if it was changed and don't ignore the return value from
the cfg80211-setter function.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac80211.c
drivers/net/wireless/iwlwifi/mvm/nvm.c