diff options
author | David Lin <dlin@marvell.com> | 2016-06-03 14:56:44 +0800 |
---|---|---|
committer | David Lin <dlin@marvell.com> | 2016-06-03 14:56:44 +0800 |
commit | 3cbf5674587d6cdb9771e5d5e6114a098aae8708 (patch) | |
tree | e830efc64946f115ea193cd7119bae0cbc85216a | |
parent | ca554376126c8665221babf7b7fb2d27872cd1db (diff) |
Added the code to support TDLS.
Signed-off-by: David Lin <dlin@marvell.com>
-rw-r--r-- | mac80211.c | 2 | ||||
-rw-r--r-- | main.c | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -473,6 +473,8 @@ static int mwl_mac80211_sta_add(struct ieee80211_hw *hw, sta_info->amsdu_ctrl.cap = MWL_AMSDU_SIZE_8K; else sta_info->amsdu_ctrl.cap = MWL_AMSDU_SIZE_4K; + if ((sta->tdls) && (!sta->wme)) + sta->wme = true; } sta_info->iv16 = 1; sta_info->iv32 = 0; @@ -551,6 +551,8 @@ static int mwl_wl_init(struct mwl_priv *priv) hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN; hw->wiphy->flags |= WIPHY_FLAG_HAS_CHANNEL_SWITCH; + hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_TDLS; + hw->vif_data_size = sizeof(struct mwl_vif); hw->sta_data_size = sizeof(struct mwl_sta); |