diff options
author | Reinette Chatre <reinette.chatre@intel.com> | 2010-04-23 10:33:33 -0700 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-05-10 15:08:51 -0700 |
commit | d2e210aef3a8e7472f91d10a50ecbc91c0a53d62 (patch) | |
tree | 072dceeed6ab669ed0619d4c195d11a01df6b93d /drivers/net/wireless/iwlwifi/iwl-core.c | |
parent | 459bc732abad5e461da9a06d82dfc0cb1119ef5a (diff) | |
download | kernel_samsung_smdk4412-d2e210aef3a8e7472f91d10a50ecbc91c0a53d62.zip kernel_samsung_smdk4412-d2e210aef3a8e7472f91d10a50ecbc91c0a53d62.tar.gz kernel_samsung_smdk4412-d2e210aef3a8e7472f91d10a50ecbc91c0a53d62.tar.bz2 |
iwlwifi: make bcast LQ command available for later restore actions
When adding the broadcast station the link quality command is
generated on demand, sent to device, and disappears. It is thus not
available for later cases when we need to restore stations and need
to send the link quality command afterwards. Now, when first adding the
broadcast station, also generate its link quality command to always be
available for later restoring.
Also fix an issue when adding local stations where the "in progress" state
is never cleared.
Reported-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-core.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index d609414..e8c9bca 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c @@ -2042,7 +2042,9 @@ int iwl_mac_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) goto out_err; /* Add the broadcast address so we can send broadcast frames */ - priv->cfg->ops->lib->add_bcast_station(priv); + err = priv->cfg->ops->lib->add_bcast_station(priv); + if (err) + goto out_err; goto out; |