diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-07-30 21:44:12 +0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-07-31 18:18:59 +0400 |
commit | c405c6298eacd423098afacf6020ddbda1b0378b (patch) | |
tree | e85dc0a9e88c041a7629c6e77e6e619bbe141704 /net/mac80211/mesh.c | |
parent | 2d56577bc68e56097a1cd6599b678e8cab758e64 (diff) | |
download | linux-c405c6298eacd423098afacf6020ddbda1b0378b.tar.xz |
mac80211: manage carrier state in mesh
Instead of assuming the carrier is on all
the time in mesh manage it with joining
and leaving the mesh.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mesh.c')
-rw-r--r-- | net/mac80211/mesh.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index 03f1696d7d98..571d5183060e 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c @@ -610,6 +610,8 @@ void ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata) BSS_CHANGED_HT | BSS_CHANGED_BASIC_RATES | BSS_CHANGED_BEACON_INT); + + netif_carrier_on(sdata->dev); } void ieee80211_stop_mesh(struct ieee80211_sub_if_data *sdata) @@ -617,6 +619,8 @@ void ieee80211_stop_mesh(struct ieee80211_sub_if_data *sdata) struct ieee80211_local *local = sdata->local; struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; + netif_carrier_off(sdata->dev); + ifmsh->mesh_id_len = 0; ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON_ENABLED); sta_info_flush(local, NULL); |