Signed-off-by: Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx> --- include/linux/nl80211.h | 3 +++ net/wireless/nl80211.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index f6e5637..55565a4 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h @@ -639,6 +639,7 @@ enum nl80211_band_attr { * on this channel in current regulatory domain. * @NL80211_FREQUENCY_ATTR_MAX_TX_POWER: Maximum transmission power in mBm * (100 * dBm). + * @NL80211_FREQUENCY_ATTR_MAX_BANDWIDTH: max bandwidth allowed, given in MHz */ enum nl80211_frequency_attr { __NL80211_FREQUENCY_ATTR_INVALID, @@ -648,6 +649,7 @@ enum nl80211_frequency_attr { NL80211_FREQUENCY_ATTR_NO_IBSS, NL80211_FREQUENCY_ATTR_RADAR, NL80211_FREQUENCY_ATTR_MAX_TX_POWER, + NL80211_FREQUENCY_ATTR_MAX_BANDWIDTH, /* keep last */ __NL80211_FREQUENCY_ATTR_AFTER_LAST, @@ -655,6 +657,7 @@ enum nl80211_frequency_attr { }; #define NL80211_FREQUENCY_ATTR_MAX_TX_POWER NL80211_FREQUENCY_ATTR_MAX_TX_POWER +#define NL80211_FREQUENCY_ATTR_MAX_BANDWIDTH NL80211_FREQUENCY_ATTR_MAX_BANDWIDTH /** * enum nl80211_bitrate_attr - bitrate attributes diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 08d4f55..4827020 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -207,9 +207,10 @@ static int nl80211_send_wiphy(struct sk_buff *msg, u32 pid, u32 seq, int flags, NLA_PUT_FLAG(msg, NL80211_FREQUENCY_ATTR_NO_IBSS); if (chan->flags & IEEE80211_CHAN_RADAR) NLA_PUT_FLAG(msg, NL80211_FREQUENCY_ATTR_RADAR); - NLA_PUT_U32(msg, NL80211_FREQUENCY_ATTR_MAX_TX_POWER, DBM_TO_MBM(chan->max_power)); + NLA_PUT_U32(msg, NL80211_FREQUENCY_ATTR_MAX_BANDWIDTH, + chan->max_bandwidth); nla_nest_end(msg, nl_freq); } -- 1.6.0.6 -- 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