From 2c18eafe69e84676bd7092862ecf583822f5d93b Mon Sep 17 00:00:00 2001 From: Vinod Kumar Pirla Date: Wed, 22 Jun 2022 15:49:15 +0530 Subject: [PATCH] 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 --- os_if/linux/qca_vendor.h | 6 ++++++ os_if/linux/wlan_cfg80211.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/os_if/linux/qca_vendor.h b/os_if/linux/qca_vendor.h index 2a43b3f2fd..9516bd1df6 100644 --- a/os_if/linux/qca_vendor.h +++ b/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 { diff --git a/os_if/linux/wlan_cfg80211.h b/os_if/linux/wlan_cfg80211.h index d37e29e044..96d791de84 100644 --- a/os_if/linux/wlan_cfg80211.h +++ b/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) && \