iwlagn: remove iw_mode check for beacon
authorJohannes Berg <johannes.berg@intel.com>
Mon, 23 Aug 2010 08:46:50 +0000 (10:46 +0200)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 27 Aug 2010 16:29:00 +0000 (09:29 -0700)
commit60744f62971cfa80cab36ab8c12afeae371fbe8b
tree6ae9fe1032ee38fa737c0d147625c51d66e164e5
parentece9c4ee5e590f96d7221c746126eaafac15a60c
iwlagn: remove iw_mode check for beacon

Since we have the beacon context now, we no
longer need to rely on iw_mode but can check
the beacon context interface's type. However,
that check must be in the work item instead
due to locking constraints (mutex must be
held when dereferencing beacon_ctx pointer).

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.c