ath11k: Add sta debugfs support to configure ADDBA and DELBA
PATCH 1/1 ath11k: Add sta debugfs support to configure ADDBA and DELBA
Add support to test aggregation procedures (addba/addba_resp/delba) manually by adding the required callbacks in sta debugfs files.
To enable automatic aggregation in target,
echo 0 > /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/ stations/XX:XX:XX:XX:XX:XX/aggr_mode
For manual mode,
echo 1 > /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/ stations/XX:XX:XX:XX:XX:XX/aggr_mode To send addba response, echo 0 25 > /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/ stations/XX:XX:XX:XX:XX:XX/addba_resp To send addba, echo 1 32 > /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/ stations/XX:XX:XX:XX:XX:XX/addba To send delba, echo 0 1 37 > /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/ stations/XX:XX:XX:XX:XX:XX/delba
Signed-off-by Maharaja Kennadyrajan <[email protected]>
--- drivers/net/wireless/ath/ath11k/core.h | 5 + drivers/net/wireless/ath/ath11k/debug.h | 6 + drivers/net/wireless/ath/ath11k/debugfs_sta.c | 221 ++++++++++++++++++++++++++ drivers/net/wireless/ath/ath11k/wmi.c | 140 ++++++++++++++++ drivers/net/wireless/ath/ath11k/wmi.h | 38 +++++ 5 files changed, 410 insertions(+)
drivers/net/wireless/ath/ath11k/core.h +5 -0
@@ -339,6 +339,11 @@ struct ath11k_sta {u8 rssi_comb;struct ath11k_htt_tx_stats *tx_stats;struct ath11k_rx_peer_stats *rx_stats; + +#ifdef CONFIG_MAC80211_DEBUGFS +/* protected by conf_mutex */ +bool aggr_mode; +#endif };#define ATH11K_NUM_CHANS 41
drivers/net/wireless/ath/ath11k/debug.h +6 -0
@@ -103,6 +103,12 @@ enum ath11k_pktlog_enum { ATH11K_PKTLOG_TYPE_LITE_RX = 24, }; +enum ath11k_dbg_aggr_mode { +ATH11K_DBG_AGGR_MODE_AUTO , +ATH11K_DBG_AGGR_MODE_MANUAL , +ATH11K_DBG_AGGR_MODE_MAX , +}; + __printf(2, 3) void ath11k_info(struct ath11k_base *ab, const char *fmt, ...); __printf(2, 3) void ath11k_err(struct ath11k_base *ab, const char *fmt, ...); __printf(2, 3) void ath11k_warn(struct ath11k_base *ab, const char *fmt, ...);
drivers/net/wireless/ath/ath11k/debugfs_sta.c +221 -0
231 lines not on this page · raw message
drivers/net/wireless/ath/ath11k/wmi.c +140 -0
146 lines not on this page · raw message
drivers/net/wireless/ath/ath11k/wmi.h +38 -0
@@ -3606,6 +3606,37 @@ struct wmi_init_country_cmd { } cc_info; } __packed; +struct wmi_delba_send_cmd { +u32 tlv_header; +u32 vdev_id; +struct wmi_mac_addr peer_macaddr; +u32 tid; +u32 initiator; +u32 reasoncode; +} __packed; + +struct wmi_addba_setresponse_cmd { +u32 tlv_header; +u32 vdev_id; +struct wmi_mac_addr peer_macaddr; +u32 tid; +u32 statuscode; +} __packed; + +struct wmi_addba_send_cmd { +u32 tlv_header; +u32 vdev_id; +struct wmi_mac_addr peer_macaddr; +u32 tid; +u32 buffersize; +} __packed; + +struct wmi_addba_clear_resp_cmd { +u32 tlv_header; +u32 vdev_id; +struct wmi_mac_addr peer_macaddr; +} __packed; +struct wmi_pdev_pktlog_filter_info {u32 tlv_header;struct wmi_mac_addr peer_macaddr;
@@ -4735,6 +4766,13 @@ int ath11k_wmi_send_scan_chan_list_cmd(struct ath11k *ar, struct scan_chan_list_params *chan_list);int ath11k_wmi_send_dfs_phyerr_offload_enable_cmd (struct ath11k *ar,u32 pdev_id); +int ath11k_wmi_addba_clear_resp (struct ath11k *ar,u32 vdev_id,const u8 *mac); +int ath11k_wmi_addba_send (struct ath11k *ar,u32 vdev_id,const u8 *mac, +u32 tid,u32 buf_size); +int ath11k_wmi_addba_set_resp (struct ath11k *ar,u32 vdev_id,const u8 *mac, +u32 tid,u32 status); +int ath11k_wmi_delba_send (struct ath11k *ar,u32 vdev_id,const u8 *mac, +u32 tid,u32 initiator,u32 reason);int ath11k_wmi_send_bcn_offload_control_cmd (struct ath11k *ar,u32 vdev_id,u32 bcn_ctrl_op);int
Signature · 6 lines
1.9.1 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k