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
此提交包含在:
Peng Xu
2017-02-06 16:15:38 -08:00
提交者 qcabuildsw
父節點 af98af7364
當前提交 acfdda1b97

查看文件

@@ -9172,6 +9172,7 @@ int wlan_hdd_cfg80211_update_band(struct wiphy *wiphy, eCsrBand eBand)
return 0; return 0;
} }
#define WLAN_HDD_MAX_NUM_CSA_COUNTERS 2
/* /*
* FUNCTION: wlan_hdd_cfg80211_init * FUNCTION: wlan_hdd_cfg80211_init
* This function is called by hdd_wlan_startup() * This function is called by hdd_wlan_startup()
@@ -9398,6 +9399,7 @@ int wlan_hdd_cfg80211_init(struct device *dev,
#endif #endif
wiphy->features |= NL80211_FEATURE_INACTIVITY_TIMER; wiphy->features |= NL80211_FEATURE_INACTIVITY_TIMER;
hdd_add_channel_switch_support(&wiphy->flags); hdd_add_channel_switch_support(&wiphy->flags);
wiphy->max_num_csa_counters = WLAN_HDD_MAX_NUM_CSA_COUNTERS;
EXIT(); EXIT();
return 0; return 0;