On Wed, 2013-10-02 at 09:43 +0200, Helmut Schaa wrote: > In some cases its not only required to know the maximum transmit power > the hw is capable of. Instead, userspace (hostapd) might want to know > the maximum transmit power as defined in the current regulatory domain > (for example for 802.11d country IEs). Why wouldn't it use (the equivalent of) "iw reg get" for that? > + if (nla_put_u32(msg, NL80211_FREQUENCY_ATTR_MAX_REG_TX_POWER, > + DBM_TO_MBM(chan->max_reg_power))) > + goto nla_put_failure; This would have to go into the "if (large)" part because otherwise older userspace can't read the info at all since it overflows the buffer. 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