Message ID | 1394199475-5208-3-git-send-email-rostislav.lisovy@fel.cvut.cz (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
On Fri, 2014-03-07 at 14:37 +0100, Rostislav Lisovy wrote: > These attributes are used to report back to userspace > the information about the bandwidth allowed in > a particular channel > + NL80211_FREQUENCY_ATTR_NO_20MHZ, > + NL80211_FREQUENCY_ATTR_NO_10MHZ, This makes some sense, but I think such channels should be excluded by default from the channel list in nl80211.c because they will break old tools - you should include them only in the 'split wiphy info' case. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index 8d0e319..b5b5600 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h @@ -2304,6 +2304,12 @@ enum nl80211_band_attr { * @NL80211_FREQUENCY_ATTR_NO_160MHZ: any 160 MHz (but not 80+80) channel * using this channel as the primary or any of the secondary channels * isn't possible + * @NL80211_FREQUENCY_ATTR_NO_20MHZ: 20 MHz operation is not allowed + * on this channel in current regulatory domain. + * - this still allows 10 MHz and 5 MHz operation + * @NL80211_FREQUENCY_ATTR_NO_10MHZ: 10 MHz operation is not allowed + * on this channel in current regulatory domain. + * - this still allows 20 MHz and 5 MHz operation * @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number * currently defined * @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use @@ -2322,6 +2328,8 @@ enum nl80211_frequency_attr { NL80211_FREQUENCY_ATTR_NO_HT40_PLUS, NL80211_FREQUENCY_ATTR_NO_80MHZ, NL80211_FREQUENCY_ATTR_NO_160MHZ, + NL80211_FREQUENCY_ATTR_NO_20MHZ, + NL80211_FREQUENCY_ATTR_NO_10MHZ, /* keep last */ __NL80211_FREQUENCY_ATTR_AFTER_LAST,
These attributes are used to report back to userspace the information about the bandwidth allowed in a particular channel Signed-off-by: Rostislav Lisovy <rostislav.lisovy@fel.cvut.cz> --- include/uapi/linux/nl80211.h | 8 ++++++++ 1 file changed, 8 insertions(+)