|
@@ -294,8 +294,8 @@ static int iwlagn_rxon_connect(struct iwl_priv *priv,
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
- if ((ctx->vif && ctx->vif->type == NL80211_IFTYPE_STATION) &&
|
|
|
- priv->cfg->ht_params->smps_mode)
|
|
|
+ if (ctx->vif && ctx->vif->type == NL80211_IFTYPE_STATION &&
|
|
|
+ priv->cfg->ht_params && priv->cfg->ht_params->smps_mode)
|
|
|
ieee80211_request_smps(ctx->vif,
|
|
|
priv->cfg->ht_params->smps_mode);
|
|
|
|