[PATCH v2 8/8] ath10k: add support to send delba
Kalle Valo
kvalo at qca.qualcomm.com
Mon Jan 12 03:45:59 PST 2015
Rajkumar Manoharan <rmanohar at qti.qualcomm.com> writes:
> This per-station debugfs entry helps to send delba in manual mode
> for debugging purpose. It accepts tid, initiator and reason code
> as inputs.
>
> 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: Rajkumar Manoharan <rmanohar at qti.qualcomm.com>
[...]
> + ret = sscanf(buf, "%u %u %u", &tid, &initiator, &reason);
> + if (ret != 3) {
> + ath10k_warn(ar, "ex: echo <tid> <initiator> <reason code> >delba\n");
> + return -EINVAL;
> + }
> +
> + /* Valid TID values are 0 through 15 */
> + if (tid > HTT_DATA_TX_EXT_TID_MGMT - 2) {
> + ath10k_warn(ar, "Invalid TID %u\n", tid);
> + return -EINVAL;
> + }
And I did the same here as well.
--
Kalle Valo
More information about the ath10k
mailing list