Signed-off-by: Ashok Nagarajan <[email protected]>
---
net/mac80211/mesh.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c
index 7cf1950..2b814d5 100644
--- a/net/mac80211/mesh.c
+++ b/net/mac80211/mesh.c
@@ -581,6 +581,19 @@ void ieee80211_start_mesh(struct ieee80211_sub_if_data
*sdata)
{
struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh;
struct ieee80211_local *local = sdata->local;
+ struct ieee80211_supported_band *sband;
+ struct ieee80211_rate *bitrates;
+ enum ieee80211_band band = local->hw.conf.channel->band;
+ int i;
+
+ sband = local->hw.wiphy->bands[band];
+ bitrates = sband->bitrates;
+ for (i = 0; i < sband->n_bitrates; i++)
+ if (band == IEEE80211_BAND_2GHZ &&
+ bitrates[i].bitrate > 110) {
+ sdata->flags |= IEEE80211_SDATA_OPERATING_GMODE;
+ break;
+ }
local->fif_other_bss++;
/* mesh ifaces must set allmulti to forward mcast traffic */
--
1.7.5.4
_______________________________________________
Devel mailing list
[email protected]
http://lists.open80211s.org/cgi-bin/mailman/listinfo/devel