mac80211_hwsim: enable Mesh Point operation
authorAndrey Yurovsky <andrey@cozybit.com>
Sat, 1 Nov 2008 06:23:35 +0000 (23:23 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 21 Nov 2008 16:06:04 +0000 (11:06 -0500)
Initial mesh support: add Mesh Point to supported interfaces mask and allow
hwsim to send beacons in mesh mode.

Signed-off-by: Andrey Yurovsky <andrey@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mac80211_hwsim.c

index b9230da925ee7a6d98a02d1d5d5b39b38a374138..d8b5cf3894055a42b11b16d862253344ce2c0903 100644 (file)
@@ -368,7 +368,8 @@ static void mac80211_hwsim_beacon_tx(void *arg, u8 *mac,
 
        hwsim_check_magic(vif);
 
-       if (vif->type != NL80211_IFTYPE_AP)
+       if (vif->type != NL80211_IFTYPE_AP &&
+           vif->type != NL80211_IFTYPE_MESH_POINT)
                return;
 
        skb = ieee80211_beacon_get(hw, vif);
@@ -774,7 +775,8 @@ static int __init init_mac80211_hwsim(void)
                hw->queues = 4;
                hw->wiphy->interface_modes =
                        BIT(NL80211_IFTYPE_STATION) |
-                       BIT(NL80211_IFTYPE_AP);
+                       BIT(NL80211_IFTYPE_AP) |
+                       BIT(NL80211_IFTYPE_MESH_POINT);
                hw->ampdu_queues = 1;
 
                /* ask mac80211 to reserve space for magic */