فهرست منبع

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 8 سال پیش
والد
کامیت
acfdda1b97
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      core/hdd/src/wlan_hdd_cfg80211.c

+ 2 - 0
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;