Skip to content

Commit

Permalink
mac80211_hwsim: enable Mesh Point operation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrey Yurovsky authored and John W. Linville committed Nov 21, 2008
1 parent a3c9aa5 commit 55b3961
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/net/wireless/mac80211_hwsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 55b3961

Please sign in to comment.