iwlagn: avoid crash if vif is not assigned
authorJohannes Berg <johannes.berg@intel.com>
Thu, 11 Nov 2010 02:25:47 +0000 (18:25 -0800)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Tue, 16 Nov 2010 15:46:26 +0000 (07:46 -0800)
commit893654de3ff41a4f5037397d06a3f853bbbb3484
tree6e62ecab2088147a30e948c12017d9b318509653
parentcfa1da7e9133be9280990b2a64fa7696924c8d9a
iwlagn: avoid crash if vif is not assigned

For reasons that aren't entirely clear to me,
we sometimes get here during hardware reset
without the interface being set. Don't crash,
but keep a warning.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn-rxon.c