aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndrey Yurovsky <andrey@cozybit.com>2008-11-01 02:23:35 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-11-21 11:06:04 -0500
commit55b3961953494c340b3625486f484af8ded31dd7 (patch)
treee5eb896225886a98e0252e3c76722eee1e2dd926 /drivers
parenta3c9aa512945aa5552d03c7d6d6c3b826a3f9e28 (diff)
mac80211_hwsim: enable Mesh Point operation
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/mac80211_hwsim.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index b9230da925e..d8b5cf38940 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -368,7 +368,8 @@ static void mac80211_hwsim_beacon_tx(void *arg, u8 *mac,
368 368
369 hwsim_check_magic(vif); 369 hwsim_check_magic(vif);
370 370
371 if (vif->type != NL80211_IFTYPE_AP) 371 if (vif->type != NL80211_IFTYPE_AP &&
372 vif->type != NL80211_IFTYPE_MESH_POINT)
372 return; 373 return;
373 374
374 skb = ieee80211_beacon_get(hw, vif); 375 skb = ieee80211_beacon_get(hw, vif);
@@ -774,7 +775,8 @@ static int __init init_mac80211_hwsim(void)
774 hw->queues = 4; 775 hw->queues = 4;
775 hw->wiphy->interface_modes = 776 hw->wiphy->interface_modes =
776 BIT(NL80211_IFTYPE_STATION) | 777 BIT(NL80211_IFTYPE_STATION) |
777 BIT(NL80211_IFTYPE_AP); 778 BIT(NL80211_IFTYPE_AP) |
779 BIT(NL80211_IFTYPE_MESH_POINT);
778 hw->ampdu_queues = 1; 780 hw->ampdu_queues = 1;
779 781
780 /* ask mac80211 to reserve space for magic */ 782 /* ask mac80211 to reserve space for magic */