diff options
author | Ashok Nagarajan <ashok@cozybit.com> | 2013-05-10 17:50:51 -0700 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-05-24 23:54:43 +0200 |
commit | b422c6cd7e93bb613030f14d7d8a0cc73f115629 (patch) | |
tree | d27418a219e0c4809bee0e73c5117da8095ad01a /net/mac80211/mesh.c | |
parent | d4a5a48976d12ab340ed34605b5f5049b123d868 (diff) | |
download | op-kernel-dev-b422c6cd7e93bb613030f14d7d8a0cc73f115629.zip op-kernel-dev-b422c6cd7e93bb613030f14d7d8a0cc73f115629.tar.gz |
{cfg,mac}80211: move mandatory rates calculation to cfg80211
Move mandatory rates calculation to cfg80211, shared with non mac80211 drivers.
Signed-off-by: Ashok Nagarajan <ashok@cozybit.com>
[extend documentation]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mesh.c')
-rw-r--r-- | net/mac80211/mesh.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index c13db9a..c14bb81 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c @@ -741,6 +741,8 @@ int ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata) BSS_CHANGED_BASIC_RATES | BSS_CHANGED_BEACON_INT; enum ieee80211_band band = ieee80211_get_sdata_band(sdata); + struct ieee80211_supported_band *sband = + sdata->local->hw.wiphy->bands[band]; local->fif_other_bss++; /* mesh ifaces must set allmulti to forward mcast traffic */ @@ -758,8 +760,7 @@ int ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata) sdata->vif.bss_conf.ht_operation_mode = ifmsh->mshcfg.ht_opmode; sdata->vif.bss_conf.enable_beacon = true; - sdata->vif.bss_conf.basic_rates = - ieee80211_mandatory_rates(local, band); + sdata->vif.bss_conf.basic_rates = ieee80211_mandatory_rates(sband); changed |= ieee80211_mps_local_status_update(sdata); |