diff options
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 28382b5c7c25..55e3a26510ed 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -582,6 +582,8 @@ static void sta_apply_parameters(struct ieee80211_local *local, | |||
582 | struct ieee80211_supported_band *sband; | 582 | struct ieee80211_supported_band *sband; |
583 | struct ieee80211_sub_if_data *sdata = sta->sdata; | 583 | struct ieee80211_sub_if_data *sdata = sta->sdata; |
584 | 584 | ||
585 | sband = local->hw.wiphy->bands[local->oper_channel->band]; | ||
586 | |||
585 | /* | 587 | /* |
586 | * FIXME: updating the flags is racy when this function is | 588 | * FIXME: updating the flags is racy when this function is |
587 | * called from ieee80211_change_station(), this will | 589 | * called from ieee80211_change_station(), this will |
@@ -622,7 +624,6 @@ static void sta_apply_parameters(struct ieee80211_local *local, | |||
622 | 624 | ||
623 | if (params->supported_rates) { | 625 | if (params->supported_rates) { |
624 | rates = 0; | 626 | rates = 0; |
625 | sband = local->hw.wiphy->bands[local->oper_channel->band]; | ||
626 | 627 | ||
627 | for (i = 0; i < params->supported_rates_len; i++) { | 628 | for (i = 0; i < params->supported_rates_len; i++) { |
628 | int rate = (params->supported_rates[i] & 0x7f) * 5; | 629 | int rate = (params->supported_rates[i] & 0x7f) * 5; |
@@ -635,7 +636,8 @@ static void sta_apply_parameters(struct ieee80211_local *local, | |||
635 | } | 636 | } |
636 | 637 | ||
637 | if (params->ht_capa) | 638 | if (params->ht_capa) |
638 | ieee80211_ht_cap_ie_to_sta_ht_cap(params->ht_capa, | 639 | ieee80211_ht_cap_ie_to_sta_ht_cap(sband, |
640 | params->ht_capa, | ||
639 | &sta->sta.ht_cap); | 641 | &sta->sta.ht_cap); |
640 | 642 | ||
641 | if (ieee80211_vif_is_mesh(&sdata->vif) && params->plink_action) { | 643 | if (ieee80211_vif_is_mesh(&sdata->vif) && params->plink_action) { |