|
@@ -52,6 +52,8 @@ hdd_connectivity_log_attr_table[WLAN_TAG_MAX] = {
|
|
|
[WLAN_AUTH_RESP] = QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP,
|
|
|
[WLAN_ASSOC_REQ] = QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ,
|
|
|
[WLAN_ASSOC_RSP] = QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP,
|
|
|
+ [WLAN_REASSOC_REQ] = QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ,
|
|
|
+ [WLAN_REASSOC_RSP] = QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES,
|
|
|
[WLAN_DEAUTH_RX] = QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX,
|
|
|
[WLAN_DEAUTH_TX] = QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX,
|
|
|
[WLAN_DISASSOC_RX] = QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX,
|
|
@@ -238,9 +240,57 @@ connectivity_attr_table[QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX + 1]
|
|
|
GET_ATTR_OFFSET(pkt_info.seq_num)},
|
|
|
{QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, NLA_U8, sizeof(uint8_t),
|
|
|
GET_ATTR_OFFSET(pkt_info.frame_status_code)},
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID, NLA_U16, sizeof(uint16_t),
|
|
|
+ GET_ATTR_OFFSET(pkt_info.assoc_id)},
|
|
|
{WLAN_CONNECTIVITY_ATTR_END, 0, 0, 0},
|
|
|
},
|
|
|
|
|
|
+ [QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ] = {
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE, NLA_U32, sizeof(uint32_t),
|
|
|
+ GET_ATTR_OFFSET(log_subtype)},
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, NLA_U64, sizeof(uint64_t),
|
|
|
+ GET_ATTR_OFFSET(timestamp_us)},
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, NLA_U64, sizeof(uint64_t),
|
|
|
+ GET_ATTR_OFFSET(ktime_us)},
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, NLA_U8, sizeof(uint8_t),
|
|
|
+ GET_ATTR_OFFSET(vdev_id)},
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, NLA_BINARY, QDF_MAC_ADDR_SIZE,
|
|
|
+ GET_ATTR_OFFSET(bssid)},
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, NLA_S32, sizeof(int32_t),
|
|
|
+ GET_ATTR_OFFSET(pkt_info.rssi)},
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, NLA_U16, sizeof(uint16_t),
|
|
|
+ GET_ATTR_OFFSET(pkt_info.seq_num)},
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, NLA_U8, sizeof(uint8_t),
|
|
|
+ GET_ATTR_OFFSET(pkt_info.tx_status)},
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, NLA_FLAG, sizeof(uint8_t),
|
|
|
+ GET_ATTR_OFFSET(pkt_info.is_retry_frame)},
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, NLA_U64,
|
|
|
+ sizeof(uint64_t), GET_ATTR_OFFSET(fw_timestamp_us)},
|
|
|
+ {WLAN_CONNECTIVITY_ATTR_END, 0, 0, 0},
|
|
|
+ },
|
|
|
+
|
|
|
+ [QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES] = {
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE, NLA_U32, sizeof(uint32_t),
|
|
|
+ GET_ATTR_OFFSET(log_subtype)},
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, NLA_U64, sizeof(uint64_t),
|
|
|
+ GET_ATTR_OFFSET(timestamp_us)},
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, NLA_U64, sizeof(uint64_t),
|
|
|
+ GET_ATTR_OFFSET(ktime_us)},
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, NLA_U8, sizeof(uint8_t),
|
|
|
+ GET_ATTR_OFFSET(vdev_id)},
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, NLA_BINARY, QDF_MAC_ADDR_SIZE,
|
|
|
+ GET_ATTR_OFFSET(bssid)},
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, NLA_U16, sizeof(uint16_t),
|
|
|
+ GET_ATTR_OFFSET(pkt_info.seq_num)},
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, NLA_U8, sizeof(uint8_t),
|
|
|
+ GET_ATTR_OFFSET(pkt_info.frame_status_code)},
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID, NLA_U16, sizeof(uint16_t),
|
|
|
+ GET_ATTR_OFFSET(pkt_info.assoc_id)},
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, NLA_U64,
|
|
|
+ sizeof(uint64_t), GET_ATTR_OFFSET(fw_timestamp_us)},
|
|
|
+ {WLAN_CONNECTIVITY_ATTR_END, 0, 0, 0},
|
|
|
+ },
|
|
|
+
|
|
|
[QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX] = {
|
|
|
{QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE, NLA_U32, sizeof(uint32_t),
|
|
|
GET_ATTR_OFFSET(log_subtype)},
|
|
@@ -380,6 +430,8 @@ connectivity_attr_table[QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX + 1]
|
|
|
sizeof(uint64_t), GET_ATTR_OFFSET(fw_timestamp_us)},
|
|
|
{QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST, NLA_NESTED, sizeof(uint16_t),
|
|
|
GET_ATTR_OFFSET(roam_scan.scan_freq)},
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE, NLA_FLAG, sizeof(uint8_t),
|
|
|
+ GET_ATTR_OFFSET(roam_scan.is_btcoex_active)},
|
|
|
{WLAN_CONNECTIVITY_ATTR_END, 0, 0, 0},
|
|
|
},
|
|
|
|