Return-path: Received: from he.sipsolutions.net ([78.46.109.217]:40858 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755350Ab3CDIcG (ORCPT ); Mon, 4 Mar 2013 03:32:06 -0500 From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: j@w1.fi, Johannes Berg Subject: [PATCH] cfg80211: enable TDLS on P2P client interfaces Date: Mon, 4 Mar 2013 09:31:59 +0100 Message-Id: <1362385919-8260-1-git-send-email-johannes@sipsolutions.net> (sfid-20130304_093209_680610_698BC8BF) Sender: linux-wireless-owner@vger.kernel.org List-ID: From: Johannes Berg There's no reason TDLS should be prevented on P2P client interfaces, and most of the code already handles it, so allow adding stations for it. Reported-by: Jouni Malinen Signed-off-by: Johannes Berg --- net/wireless/nl80211.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 39d8437..c85a4b8 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -4029,6 +4029,7 @@ static int nl80211_new_station(struct sk_buff *skb, struct genl_info *info) return -EINVAL; break; case NL80211_IFTYPE_STATION: + case NL80211_IFTYPE_P2P_CLIENT: /* ignore uAPSD data */ params.sta_modify_mask &= ~STATION_PARAM_APPLY_UAPSD; -- 1.8.0