Skip to content

Commit

Permalink
Added the code to support TDLS.
Browse files Browse the repository at this point in the history
Signed-off-by: David Lin <dlin@marvell.com>
  • Loading branch information
yuhhaurlin committed Jun 3, 2016
1 parent ca55437 commit 3cbf567
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mac80211.c
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions main.c
Expand Up @@ -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);

Expand Down

0 comments on commit 3cbf567

Please sign in to comment.