diff options
Diffstat (limited to 'net/mac80211/ieee80211.c')
-rw-r--r-- | net/mac80211/ieee80211.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c index 7106d651f4f9..727af295c969 100644 --- a/net/mac80211/ieee80211.c +++ b/net/mac80211/ieee80211.c | |||
@@ -26,9 +26,7 @@ | |||
26 | 26 | ||
27 | #include "ieee80211_i.h" | 27 | #include "ieee80211_i.h" |
28 | #include "ieee80211_rate.h" | 28 | #include "ieee80211_rate.h" |
29 | #ifdef CONFIG_MAC80211_MESH | ||
30 | #include "mesh.h" | 29 | #include "mesh.h" |
31 | #endif | ||
32 | #include "wep.h" | 30 | #include "wep.h" |
33 | #include "wme.h" | 31 | #include "wme.h" |
34 | #include "aes_ccm.h" | 32 | #include "aes_ccm.h" |
@@ -938,11 +936,9 @@ static int __ieee80211_if_config(struct net_device *dev, | |||
938 | conf.bssid = sdata->u.sta.bssid; | 936 | conf.bssid = sdata->u.sta.bssid; |
939 | conf.ssid = sdata->u.sta.ssid; | 937 | conf.ssid = sdata->u.sta.ssid; |
940 | conf.ssid_len = sdata->u.sta.ssid_len; | 938 | conf.ssid_len = sdata->u.sta.ssid_len; |
941 | #ifdef CONFIG_MAC80211_MESH | 939 | } else if (ieee80211_vif_is_mesh(&sdata->vif)) { |
942 | } else if (sdata->vif.type == IEEE80211_IF_TYPE_MESH_POINT) { | ||
943 | conf.beacon = beacon; | 940 | conf.beacon = beacon; |
944 | ieee80211_start_mesh(dev); | 941 | ieee80211_start_mesh(dev); |
945 | #endif | ||
946 | } else if (sdata->vif.type == IEEE80211_IF_TYPE_AP) { | 942 | } else if (sdata->vif.type == IEEE80211_IF_TYPE_AP) { |
947 | conf.ssid = sdata->u.ap.ssid; | 943 | conf.ssid = sdata->u.ap.ssid; |
948 | conf.ssid_len = sdata->u.ap.ssid_len; | 944 | conf.ssid_len = sdata->u.ap.ssid_len; |
@@ -1824,10 +1820,9 @@ static void __exit ieee80211_exit(void) | |||
1824 | rc80211_simple_exit(); | 1820 | rc80211_simple_exit(); |
1825 | rc80211_pid_exit(); | 1821 | rc80211_pid_exit(); |
1826 | 1822 | ||
1827 | #ifdef CONFIG_MAC80211_MESH | ||
1828 | if (mesh_allocated) | 1823 | if (mesh_allocated) |
1829 | ieee80211s_stop(); | 1824 | ieee80211s_stop(); |
1830 | #endif | 1825 | |
1831 | ieee80211_wme_unregister(); | 1826 | ieee80211_wme_unregister(); |
1832 | ieee80211_debugfs_netdev_exit(); | 1827 | ieee80211_debugfs_netdev_exit(); |
1833 | } | 1828 | } |