iwlagn: always send RXON timing
The PAN context requires also getting RXON timing when we send an unassociated RXON in some cases. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
This commit is contained in:
committed by
Wey-Yi Guy
parent
47313e340e
commit
b01efe434b
@@ -105,6 +105,7 @@ int iwl_commit_rxon(struct iwl_priv *priv, struct iwl_rxon_context *ctx)
|
|||||||
int ret;
|
int ret;
|
||||||
bool new_assoc =
|
bool new_assoc =
|
||||||
!!(ctx->staging.filter_flags & RXON_FILTER_ASSOC_MSK);
|
!!(ctx->staging.filter_flags & RXON_FILTER_ASSOC_MSK);
|
||||||
|
bool old_assoc = !!(ctx->active.filter_flags & RXON_FILTER_ASSOC_MSK);
|
||||||
|
|
||||||
if (!iwl_is_alive(priv))
|
if (!iwl_is_alive(priv))
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
@@ -182,7 +183,7 @@ int iwl_commit_rxon(struct iwl_priv *priv, struct iwl_rxon_context *ctx)
|
|||||||
|
|
||||||
iwl_set_rxon_hwcrypto(priv, ctx, !priv->cfg->mod_params->sw_crypto);
|
iwl_set_rxon_hwcrypto(priv, ctx, !priv->cfg->mod_params->sw_crypto);
|
||||||
|
|
||||||
if (new_assoc) {
|
if (!old_assoc) {
|
||||||
/*
|
/*
|
||||||
* First of all, before setting associated, we need to
|
* First of all, before setting associated, we need to
|
||||||
* send RXON timing so the device knows about the DTIM
|
* send RXON timing so the device knows about the DTIM
|
||||||
|
Reference in New Issue
Block a user