Rajkumar Manoharan <[email protected]> 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 <[email protected]>

[...]

> +     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
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to