Skip to contentSkip to conversation

mac80211_hwsim: Claim support for TDLS

PATCH New Jouni Malinen 1 participant 1 message Oct 23, 2011 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211_hwsim: Claim support for TDLS

---
 drivers/net/wireless/mac80211_hwsim.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Note: Before even thinking of testing this, please take a look at the RFC patch for handling supported rates configuration unless you want to crash and burn your kernel.. Anyway, it is useful to get hwsim ready for TDLS testing and the mac80211 issue is not specific to hwsim and people who use hwsim are normally capable of patching kernel and familiar with this mailing list in the first place.. ;-)

With the RFC "mac80211: Fix STA supported rate configuration with dummy entry" patch in place, I was able to get the TDLS link running in mac80211_hwsim environment between two WPA2 stations.

drivers/net/wireless/mac80211_hwsim.c +2 -0
index 68455a2..477100d 100644
@@ -1747,6 +1747,8 @@ static int __init init_mac80211_hwsim(void)
 			    IEEE80211_HW_SUPPORTS_DYNAMIC_SMPS |
 			    IEEE80211_HW_AMPDU_AGGREGATION;
 
+		hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_TDLS;
+
 		/* ask mac80211 to reserve space for magic */
 		hw->vif_data_size = sizeof(struct hwsim_vif_priv);
 		hw->sta_data_size = sizeof(struct hwsim_sta_priv);
Signature · 5 lines
1.7.4.1


-- 
Jouni Malinen                                            PGP id EFC895FA