Commit 107ef97a authored by Stanislaw Gruszka's avatar Stanislaw Gruszka Committed by John W. Linville
Browse files

iwlagn: fix priv->cfg->ht_params NULL pointer dereference

This fix regression introduced by commit:

commit 15b3f3b0
Author: Wey-Yi Guy <>
Date:   Fri Jun 3 07:54:13 2011 -0700

    iwlagn: set smps mode after assoc for 1000 device

Also remove unneeded brackets on the way.


Cc: # 3.1+
Signed-off-by: default avatarStanislaw Gruszka <>
Acked-by: default avatarWey-Yi Guy <>
Signed-off-by: default avatarJohn W. Linville <>
parent f9a703e1
......@@ -294,8 +294,8 @@ static int iwlagn_rxon_connect(struct iwl_priv *priv,
return ret;
if ((ctx->vif && ctx->vif->type == NL80211_IFTYPE_STATION) &&
if (ctx->vif && ctx->vif->type == NL80211_IFTYPE_STATION &&
priv->cfg->ht_params && priv->cfg->ht_params->smps_mode)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment