diff options
author | Thomas Pedersen <thomas@cozybit.com> | 2012-05-14 01:24:08 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-05 15:21:47 -0400 |
commit | be0f42377ffbc7fbb8bda74755048712a4ee8d8e (patch) | |
tree | d5f6ec7e525f8e4bc1613c7011d62f7e3b6ea8d3 /net/mac80211/chan.c | |
parent | dac211ec10d268b9d09000093a9fa2ac1773894f (diff) |
mac80211: allow channel change while mesh is down
Allow channel change on a mesh interface if the interface is up and no
mesh is started.
Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/chan.c')
-rw-r--r-- | net/mac80211/chan.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/chan.c b/net/mac80211/chan.c index c76cf7230c7d..f0f87e5a1d35 100644 --- a/net/mac80211/chan.c +++ b/net/mac80211/chan.c | |||
@@ -41,6 +41,10 @@ __ieee80211_get_channel_mode(struct ieee80211_local *local, | |||
41 | if (!sdata->u.ap.beacon) | 41 | if (!sdata->u.ap.beacon) |
42 | continue; | 42 | continue; |
43 | break; | 43 | break; |
44 | case NL80211_IFTYPE_MESH_POINT: | ||
45 | if (!sdata->wdev.mesh_id_len) | ||
46 | continue; | ||
47 | break; | ||
44 | default: | 48 | default: |
45 | break; | 49 | break; |
46 | } | 50 | } |