Explorar o código

qcacmn: Add vendor event to indicate driver ready after SSR

Add QCA vendor event to indicate user space that the driver
recovery is completed after the internal failure.

Change-Id: Ib65c9773dd64fab36ba10493c27bd670c2bb6d08
CRs-Fixed: 3226415
Vinod Kumar Pirla %!s(int64=3) %!d(string=hai) anos
pai
achega
2c18eafe69
Modificáronse 2 ficheiros con 8 adicións e 0 borrados
  1. 6 0
      os_if/linux/qca_vendor.h
  2. 2 0
      os_if/linux/wlan_cfg80211.h

+ 6 - 0
os_if/linux/qca_vendor.h

@@ -571,6 +571,11 @@
  *
  *	The attributes used with this command are defined in
  *	enum qca_wlan_vendor_attr_mcc_quota.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the
+ *	user space that the driver is ready for operations again after
+ *	recovering from internal failures. This occurs following a failure
+ *	that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG.
  */
 
 enum qca_nl80211_vendor_subcmds {
@@ -812,6 +817,7 @@ enum qca_nl80211_vendor_subcmds {
 	QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
 	QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
 	QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
+	QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
 };
 
 enum qca_wlan_vendor_tos {

+ 2 - 0
os_if/linux/wlan_cfg80211.h

@@ -145,6 +145,7 @@
  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_INDEX: Report thermal event index
  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT_INDEX: TWT config index
  * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG_INDEX: CFR data event index
+ * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY_INDEX: Driver Ready after SSR index
  */
 
 enum qca_nl80211_vendor_subcmds_index {
@@ -252,6 +253,7 @@ enum qca_nl80211_vendor_subcmds_index {
 #endif
 	QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA_INDEX,
 	QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING_INDEX,
+	QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY_INDEX,
 };
 
 #if !defined(SUPPORT_WDEV_CFG80211_VENDOR_EVENT_ALLOC) && \