ath9k/carl9170: advertise P2P
PATCH 1/1 ath9k/carl9170: advertise P2P
From: Johannes Berg <[email protected]>
With some upcoming changes we'd like to use the interface types for P2P capability tests. Enable them now so that when we add those tests in wpa_supplicant, nothing will break.
Signed-off-by Johannes Berg <[email protected]>
---
I know it's rather late for 2.6.37, but it would help tremendously to have it in because then that kernel would be the first one having P2P enabled (at least for ath9k and carl9170) and it's the only backward-incompatible change I intend to make still.
drivers/net/wireless/ath/ath9k/init.c | 2 ++ drivers/net/wireless/ath/carl9170/fw.c | 3 ++- drivers/net/wireless/ath/carl9170/main.c | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-)
drivers/net/wireless/ath/ath9k/init.c +2 -0
@@ -657,6 +657,8 @@ void ath9k_set_hw_capab(struct ath_softc hw->flags |=IEEE80211_HW_MFP_CAPABLE ; hw->wiphy->interface_modes = +BIT (NL80211_IFTYPE_P2P_GO ) | +BIT (NL80211_IFTYPE_P2P_CLIENT ) |BIT (NL80211_IFTYPE_AP ) |BIT (NL80211_IFTYPE_WDS ) | BIT(NL80211_IFTYPE_STATION) |
drivers/net/wireless/ath/carl9170/fw.c +2 -1
@@ -291,7 +291,8 @@ static int carl9170_fw(struct ar9170 *arif (SUPP (CARL9170FW_WLANTX_CAB )) { ar->hw->wiphy->interface_modes |= -BIT (NL80211_IFTYPE_AP ); +BIT (NL80211_IFTYPE_AP ) | +BIT (NL80211_IFTYPE_P2P_GO ); } }
drivers/net/wireless/ath/carl9170/main.c +2 -1
@@ -1648,7 +1648,8 @@ void *carl9170_alloc(size_t priv_size)* supports these modes. The code which will add the * additional interface_modes is in fw.c. */ - hw->wiphy->interface_modes =BIT (NL80211_IFTYPE_STATION ); + hw->wiphy->interface_modes =BIT (NL80211_IFTYPE_STATION ) | +BIT (NL80211_IFTYPE_P2P_CLIENT ); hw->flags |=IEEE80211_HW_RX_INCLUDES_FCS | IEEE80211_HW_REPORTS_TX_ACK_STATUS |