mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
qcacld-3.0: Properly advertise mem_dump feature support
Currently, mem_dump feature support is advertized just based on the compile macro, if the firmware does not support this feature, still code ends up sending true to the user space. Fix this by properly advertising the mem_dump feature support based on the the FW support. Change-Id: I4d601f764c6598c51c48d43e24e15fb6c35875bd CRs-Fixed: 2077931
This commit is contained in:
parent
4353e4f156
commit
bc8454e978
2 changed files with 4 additions and 4 deletions
|
|
@ -2179,12 +2179,12 @@ void hdd_switch_sap_channel(struct hdd_adapter *adapter, uint8_t channel);
|
|||
*
|
||||
* Return: true if supported and false otherwise
|
||||
*/
|
||||
static inline bool hdd_is_memdump_supported(void)
|
||||
static inline bool hdd_is_memdump_supported(struct hdd_context *hdd_ctx)
|
||||
{
|
||||
return true;
|
||||
return hdd_ctx->fw_mem_dump_enabled;
|
||||
}
|
||||
#else
|
||||
static inline bool hdd_is_memdump_supported(void)
|
||||
static inline bool hdd_is_memdump_supported(struct hdd_context *hdd_ctx)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5190,7 +5190,7 @@ __wlan_hdd_cfg80211_get_logger_supp_feature(struct wiphy *wiphy,
|
|||
|
||||
features = 0;
|
||||
|
||||
if (hdd_is_memdump_supported())
|
||||
if (hdd_is_memdump_supported(hdd_ctx))
|
||||
features |= WIFI_LOGGER_MEMORY_DUMP_SUPPORTED;
|
||||
features |= WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED;
|
||||
features |= WIFI_LOGGER_CONNECT_EVENT_SUPPORTED;
|
||||
|
|
|
|||
Loading…
Reference in a new issue