mac80211: Use mandatory rates as basic rates when starting mesh
authorAshok Nagarajan <ashok@cozybit.com>
Tue, 3 Apr 2012 04:21:19 +0000 (21:21 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 11 Apr 2012 20:23:45 +0000 (16:23 -0400)
Signed-off-by: Ashok Nagarajan <ashok@cozybit.com>
Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mesh.c

index 386dbca1eab32b0a45beecae52afa4b7d917fdde..f1d9685d959c761a1e190171cb80e5c7ef4faf07 100644 (file)
@@ -581,8 +581,12 @@ void ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata)
        ieee80211_mesh_root_setup(ifmsh);
        ieee80211_queue_work(&local->hw, &sdata->work);
        sdata->vif.bss_conf.beacon_int = MESH_DEFAULT_BEACON_INTERVAL;
+       sdata->vif.bss_conf.basic_rates =
+               ieee80211_mandatory_rates(sdata->local,
+                                         sdata->local->hw.conf.channel->band);
        ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON |
                                                BSS_CHANGED_BEACON_ENABLED |
+                                               BSS_CHANGED_BASIC_RATES |
                                                BSS_CHANGED_BEACON_INT);
 }