|
@@ -736,13 +736,14 @@ static const struct ieee80211_iface_limit if_limits_multi[] = {
|
|
|
BIT(NL80211_IFTYPE_P2P_CLIENT) |
|
|
|
BIT(NL80211_IFTYPE_P2P_GO) },
|
|
|
{ .max = 1, .types = BIT(NL80211_IFTYPE_ADHOC) },
|
|
|
+ { .max = 1, .types = BIT(NL80211_IFTYPE_P2P_DEVICE) },
|
|
|
};
|
|
|
|
|
|
static const struct ieee80211_iface_combination if_comb_multi[] = {
|
|
|
{
|
|
|
.limits = if_limits_multi,
|
|
|
.n_limits = ARRAY_SIZE(if_limits_multi),
|
|
|
- .max_interfaces = 2,
|
|
|
+ .max_interfaces = 3,
|
|
|
.num_different_channels = 2,
|
|
|
.beacon_int_infra_match = true,
|
|
|
},
|
|
@@ -855,6 +856,10 @@ static void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)
|
|
|
BIT(NL80211_IFTYPE_MESH_POINT) |
|
|
|
BIT(NL80211_IFTYPE_WDS);
|
|
|
|
|
|
+ if (ath9k_is_chanctx_enabled())
|
|
|
+ hw->wiphy->interface_modes |=
|
|
|
+ BIT(NL80211_IFTYPE_P2P_DEVICE);
|
|
|
+
|
|
|
hw->wiphy->iface_combinations = if_comb;
|
|
|
hw->wiphy->n_iface_combinations = ARRAY_SIZE(if_comb);
|
|
|
}
|