> + 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