Search Linux Wireless

Re: [PATCHv3 2/2] iw: add support for NoAck per tid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2011-11-18 at 12:01 +0100, Simon Wunderlich wrote:

> +static int handle_interface_noack_map(struct nl80211_state *state,
> +				      struct nl_cb *cb,
> +				      struct nl_msg *msg,
> +				      int argc, char **argv)
> +{
> +	uint16_t noack_map;
> +	char *end;
> +
> +	if (argc != 1)
> +		return 1;
> +
> +	noack_map = strtoul(argv[0], &end, 16);
> +	if (end != (argv[0] + strlen(argv[0])))
> +		return 1;

if (*end)
	return 1;

:-)

> +	NLA_PUT_U16(msg, NL80211_ATTR_NOACK_MAP, noack_map);
> +
> +	return 0;
> + nla_put_failure:
> +	return -ENOBUFS;
> +
> +}
> +COMMAND(set, noack_map, "<map>",
> +	NL80211_CMD_SET_NOACK_MAP, 0, CIB_NETDEV, handle_interface_noack_map,
> +	"Set the NoAck map for the TIDs. (0x0001 = BE, 0x000e = BK, 0x0030 = VI, 0x00C0 = VO)");

That doesn't seem right -- BE should be 0x9, BK should be 0x6, no?

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux