|
@@ -672,10 +672,12 @@ wlan_hdd_sta_ap_p2p_iface_limit[] = {
|
|
|
.max = 1,
|
|
|
.types = BIT(NL80211_IFTYPE_P2P_GO) | BIT(NL80211_IFTYPE_P2P_CLIENT)
|
|
|
},
|
|
|
+#ifndef WLAN_FEATURE_NO_STA_SAP_CONCURRENCY
|
|
|
{
|
|
|
.max = 1,
|
|
|
.types = BIT(NL80211_IFTYPE_AP)
|
|
|
},
|
|
|
+#endif
|
|
|
};
|
|
|
|
|
|
|
|
@@ -708,6 +710,7 @@ wlan_hdd_p2p_p2p_iface_limit[] = {
|
|
|
};
|
|
|
#endif
|
|
|
|
|
|
+#ifndef WLAN_FEATURE_NO_STA_SAP_CONCURRENCY
|
|
|
|
|
|
static const struct ieee80211_iface_limit
|
|
|
wlan_hdd_sta_ap_iface_limit[] = {
|
|
@@ -720,6 +723,7 @@ wlan_hdd_sta_ap_iface_limit[] = {
|
|
|
.types = BIT(NL80211_IFTYPE_AP)
|
|
|
},
|
|
|
};
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
static const struct ieee80211_iface_limit
|
|
@@ -746,6 +750,7 @@ static const struct ieee80211_iface_limit
|
|
|
|
|
|
#if defined(WLAN_FEATURE_NAN) && \
|
|
|
(LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0))
|
|
|
+#ifndef WLAN_FEATURE_NO_STA_NAN_CONCURRENCY
|
|
|
|
|
|
static const struct ieee80211_iface_limit
|
|
|
wlan_hdd_sta_nan_iface_limit[] = {
|
|
@@ -760,6 +765,7 @@ static const struct ieee80211_iface_limit
|
|
|
.types = BIT(NL80211_IFTYPE_NAN),
|
|
|
},
|
|
|
};
|
|
|
+#endif
|
|
|
|
|
|
#ifndef WLAN_FEATURE_NO_SAP_NAN_CONCURRENCY
|
|
|
|
|
@@ -822,7 +828,11 @@ static struct ieee80211_iface_combination
|
|
|
* but due to firmware limitation, allow max 2 concrnt channels.
|
|
|
*/
|
|
|
.num_different_channels = 2,
|
|
|
+#ifndef WLAN_FEATURE_NO_STA_SAP_CONCURRENCY
|
|
|
.max_interfaces = 3,
|
|
|
+#else
|
|
|
+ .max_interfaces = 2,
|
|
|
+#endif
|
|
|
.n_limits = ARRAY_SIZE(wlan_hdd_sta_ap_p2p_iface_limit),
|
|
|
.beacon_int_infra_match = true,
|
|
|
},
|
|
@@ -853,6 +863,7 @@ static struct ieee80211_iface_combination
|
|
|
.n_limits = ARRAY_SIZE(wlan_hdd_sta_p2p_iface_limit),
|
|
|
.beacon_int_infra_match = true,
|
|
|
},
|
|
|
+#ifndef WLAN_FEATURE_NO_STA_SAP_CONCURRENCY
|
|
|
|
|
|
{
|
|
|
.limits = wlan_hdd_sta_ap_iface_limit,
|
|
@@ -861,6 +872,7 @@ static struct ieee80211_iface_combination
|
|
|
.n_limits = ARRAY_SIZE(wlan_hdd_sta_ap_iface_limit),
|
|
|
.beacon_int_infra_match = true,
|
|
|
},
|
|
|
+#endif
|
|
|
|
|
|
{
|
|
|
.limits = wlan_hdd_mon_iface_limit,
|
|
@@ -870,6 +882,7 @@ static struct ieee80211_iface_combination
|
|
|
},
|
|
|
#if defined(WLAN_FEATURE_NAN) && \
|
|
|
(LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0))
|
|
|
+#ifndef WLAN_FEATURE_NO_STA_NAN_CONCURRENCY
|
|
|
|
|
|
{
|
|
|
.limits = wlan_hdd_sta_nan_iface_limit,
|
|
@@ -877,6 +890,7 @@ static struct ieee80211_iface_combination
|
|
|
.num_different_channels = 2,
|
|
|
.n_limits = ARRAY_SIZE(wlan_hdd_sta_nan_iface_limit),
|
|
|
},
|
|
|
+#endif
|
|
|
#ifndef WLAN_FEATURE_NO_SAP_NAN_CONCURRENCY
|
|
|
|
|
|
{
|