From acfdda1b97b083b9c0a71d7488378269ff8828b1 Mon Sep 17 00:00:00 2001 From: Peng Xu Date: Mon, 6 Feb 2017 16:15:38 -0800 Subject: [PATCH] qcacld-3.0: Add maximum number of CSA counters in wiphy Add maximum number of CSA counters in wiphy structure in order to support channel switch command issued from supplicant CLI. By default this value is set to 1, however supplicant assumes that the counter is 2. Change-Id: Idb9491585763f5e97efff1a5dd29d094d4553fd4 CRs-fixed: 2003465 --- core/hdd/src/wlan_hdd_cfg80211.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index aa876d22e776..5e7f8e78bfdd 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -9172,6 +9172,7 @@ int wlan_hdd_cfg80211_update_band(struct wiphy *wiphy, eCsrBand eBand) return 0; } +#define WLAN_HDD_MAX_NUM_CSA_COUNTERS 2 /* * FUNCTION: wlan_hdd_cfg80211_init * This function is called by hdd_wlan_startup() @@ -9398,6 +9399,7 @@ int wlan_hdd_cfg80211_init(struct device *dev, #endif wiphy->features |= NL80211_FEATURE_INACTIVITY_TIMER; hdd_add_channel_switch_support(&wiphy->flags); + wiphy->max_num_csa_counters = WLAN_HDD_MAX_NUM_CSA_COUNTERS; EXIT(); return 0;