|
@@ -5976,6 +5976,7 @@ __wlan_hdd_cfg80211_get_logger_supp_feature(struct wiphy *wiphy,
|
|
|
int status;
|
|
|
uint32_t features;
|
|
|
struct sk_buff *reply_skb = NULL;
|
|
|
+ bool enable_ring_buffer;
|
|
|
|
|
|
hdd_enter_dev(wdev->netdev);
|
|
|
|
|
@@ -5989,12 +5990,17 @@ __wlan_hdd_cfg80211_get_logger_supp_feature(struct wiphy *wiphy,
|
|
|
return status;
|
|
|
|
|
|
features = 0;
|
|
|
-
|
|
|
- features |= WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED;
|
|
|
- features |= WIFI_LOGGER_CONNECT_EVENT_SUPPORTED;
|
|
|
- features |= WIFI_LOGGER_WAKE_LOCK_SUPPORTED;
|
|
|
- features |= WIFI_LOGGER_DRIVER_DUMP_SUPPORTED;
|
|
|
- features |= WIFI_LOGGER_PACKET_FATE_SUPPORTED;
|
|
|
+ wlan_mlme_get_status_ring_buffer(hdd_ctx->psoc, &enable_ring_buffer);
|
|
|
+ if (enable_ring_buffer) {
|
|
|
+ features |= WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED;
|
|
|
+ features |= WIFI_LOGGER_CONNECT_EVENT_SUPPORTED;
|
|
|
+ features |= WIFI_LOGGER_WAKE_LOCK_SUPPORTED;
|
|
|
+ features |= WIFI_LOGGER_DRIVER_DUMP_SUPPORTED;
|
|
|
+ features |= WIFI_LOGGER_PACKET_FATE_SUPPORTED;
|
|
|
+ hdd_debug("Supported logger features: 0x%0x", features);
|
|
|
+ } else {
|
|
|
+ hdd_info("Ring buffer disable");
|
|
|
+ }
|
|
|
|
|
|
reply_skb = cfg80211_vendor_cmd_alloc_reply_skb(wiphy,
|
|
|
sizeof(uint32_t) + NLA_HDRLEN + NLMSG_HDRLEN);
|
|
@@ -6003,7 +6009,6 @@ __wlan_hdd_cfg80211_get_logger_supp_feature(struct wiphy *wiphy,
|
|
|
return -ENOMEM;
|
|
|
}
|
|
|
|
|
|
- hdd_debug("Supported logger features: 0x%0x", features);
|
|
|
if (nla_put_u32(reply_skb, QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED,
|
|
|
features)) {
|
|
|
hdd_err("nla put fail");
|