]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
mac80211_hwsim: Claim support for TDLS
authorJouni Malinen <j@w1.fi>
Sun, 23 Oct 2011 19:45:27 +0000 (22:45 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Nov 2011 20:54:28 +0000 (15:54 -0500)
Signed-off-by: Jouni Malinen <j@w1.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mac80211_hwsim.c

index 68455a2307cb54ba99611cb6618ed16169b9f0df..477100d0b11793ba5d05b0b7ed019b4de084076f 100644 (file)
@@ -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);