mac80211_hwsim: enable Mesh Point operation
PATCH 1/1 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.
drivers/net/wireless/mac80211_hwsim.c +4 -2
@@ -370,7 +370,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);
@@ -777,7 +778,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 */
Johannes Berg
maintainerQuoted 2 lines · Andrey Yurovsky
Initial mesh support: add Mesh Point to supported interfaces mask and allow hwsim to send beacons in mesh mode.
That'll do AP beacons, right? And it won't really help because all virtual stations see each other?
drivers/net/wireless/mac80211_hwsim.c static void mac80211_hwsim_beacon_tx(void *arg, u8 *mac, · line 375
Quoted 13 lines
Signed-off-by Andrey Yurovsky <[email protected]>drivers/net/wireless/mac80211_hwsim.c +2
-1@@ -370,7 +370,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 ;
I think I'd prefer if you'd write it as
if (vif->type != NL80211... &&
vif->type != NL80211....) return;
but ultimately, I don't think it matters much. That above just looks a little quirky, at least to me. :)
Quoted 19 lines
drivers/net/wireless/mac80211_hwsim.c +2
-2skb =ieee80211_beacon_get (hw, vif);@@ -777,7 +778,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 */ --To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html