Subject: mac80211-hwsim: allow configuring IBSS It will not work properly, because it doesn't * adjust the TSF in beacons * cancel beacons when another phy sends However, it does allow testing the configuration interfaces and as such was useful for me. Signed-off-by: Johannes Berg --- If you prefer to not have a "broken" implementation that's fine with me too, I don't really need this patch in now. drivers/net/wireless/mac80211_hwsim.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- wireless-testing.orig/drivers/net/wireless/mac80211_hwsim.c 2009-10-29 08:42:09.000000000 +0100 +++ wireless-testing/drivers/net/wireless/mac80211_hwsim.c 2009-10-29 08:42:09.000000000 +0100 @@ -9,7 +9,7 @@ /* * TODO: - * - IBSS mode simulation (Beacon transmission with competition for "air time") + * - Fix IBSS beacon transmission for "air time" competition * - RX filtering based on filter configuration (data->rx_filter) */ @@ -530,7 +530,8 @@ static void mac80211_hwsim_beacon_tx(voi hwsim_check_magic(vif); if (vif->type != NL80211_IFTYPE_AP && - vif->type != NL80211_IFTYPE_MESH_POINT) + vif->type != NL80211_IFTYPE_MESH_POINT && + vif->type != NL80211_IFTYPE_ADHOC) return; skb = ieee80211_beacon_get(hw, vif); @@ -1023,6 +1024,7 @@ static int __init init_mac80211_hwsim(vo hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | BIT(NL80211_IFTYPE_AP) | + BIT(NL80211_IFTYPE_ADHOC) | BIT(NL80211_IFTYPE_MESH_POINT); hw->flags = IEEE80211_HW_MFP_CAPABLE |