iwlwifi: bail out in case of bad trans state
authorEliad Peller <eliad@wizery.com>
Thu, 17 Dec 2015 11:02:56 +0000 (13:02 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 21 Dec 2015 17:35:41 +0000 (19:35 +0200)
commite5d15cb530082cc13a6c9457eddd6f75b0f4de65
tree3b9560887f07550bcea8aa71a2f514b58611b46e
parent5d4e8d6463dd7a7fb4f7f0bd1a045036c30b3bed
iwlwifi: bail out in case of bad trans state

In case of bad trans state (i.e. fw is not loaded) bail
out immediately instead of calling the trans, which might
not be fully initialized yet.

Also add WARN_ON_ONCE to help debugging where the errorneous
call is coming from.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-trans.h