Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c426ee24 authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville
Browse files

ath9k/carl9170: advertise P2P



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: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 98c316e3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -661,6 +661,8 @@ void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)
		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) |
+2 −1
Original line number Diff line number Diff line
@@ -291,7 +291,8 @@ static int carl9170_fw(struct ar9170 *ar, const __u8 *data, size_t len)

		if (SUPP(CARL9170FW_WLANTX_CAB)) {
			ar->hw->wiphy->interface_modes |=
				BIT(NL80211_IFTYPE_AP);
				BIT(NL80211_IFTYPE_AP) |
				BIT(NL80211_IFTYPE_P2P_GO);
		}
	}

+2 −1
Original line number Diff line number Diff line
@@ -1631,7 +1631,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 |