[PATCH v3] iw: Add support for controlling tx power for per station
Johannes Berg
johannes at sipsolutions.net
Wed Feb 15 00:03:15 PST 2017
> + sta_txpwr = strtoul(argv[0], &err, 0);
you should error-check this.
> + NLA_PUT_U32(msg, NL80211_ATTR_STA_TX_POWER,
> sta_txpwr);
> + }
> +}
> +COMMAND_ALIAS(station, set, "<MAC address> txpwr <auto|limit> [<tx
> power mBm>]",
>
Seems like that should be
<MAC address> txpwr <auto|limit <tx power dBm>>
or so?
I made that dBm there, doing that and parsing floating point numbers
would be nice I think.
johannes
More information about the ath10k
mailing list