iwlagn: check ready in iwlagn_bss_info_changed()
authorShanyu Zhao <shanyu.zhao@intel.com>
Thu, 2 Dec 2010 19:02:28 +0000 (11:02 -0800)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 13 Dec 2010 23:51:18 +0000 (15:51 -0800)
commitae0b693c12cc78913085733d28e0e0e6020db6f4
tree7a233a302342c0d284c2ad5385122d923552c5e5
parenta1da077bc36368eb7d6312e7e49260f0a3d92c77
iwlagn: check ready in iwlagn_bss_info_changed()

In function iwlagn_bss_info_changed(), we need to check if the driver
is ready before doing real work. Also, the previously put WARN() is
removed because the vif is not guaranteed to be valid. uCode restart
routine will clear the vif.

Signed-off-by: Shanyu Zhao <shanyu.zhao@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn-rxon.c