aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lin <dlin@marvell.com>2016-06-03 14:56:44 +0800
committerDavid Lin <dlin@marvell.com>2016-06-03 14:56:44 +0800
commit3cbf5674587d6cdb9771e5d5e6114a098aae8708 (patch)
treee830efc64946f115ea193cd7119bae0cbc85216a
parentca554376126c8665221babf7b7fb2d27872cd1db (diff)
Added the code to support TDLS.
Signed-off-by: David Lin <dlin@marvell.com>
-rw-r--r--mac80211.c2
-rw-r--r--main.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/mac80211.c b/mac80211.c
index ccf39c7..cdf9f50 100644
--- a/mac80211.c
+++ b/mac80211.c
@@ -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;
diff --git a/main.c b/main.c
index 5d8b421..3543a43 100644
--- a/main.c
+++ b/main.c
@@ -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);