diff options
author | 2013-05-10 17:50:51 -0700 | |
---|---|---|
committer | 2013-05-24 23:54:43 +0200 | |
commit | b422c6cd7e93bb613030f14d7d8a0cc73f115629 (patch) | |
tree | d27418a219e0c4809bee0e73c5117da8095ad01a /include/net/cfg80211.h | |
parent | mac80211: Move mesh estab_plinks outside mesh_stats debug group (diff) | |
download | linux-b422c6cd7e93bb613030f14d7d8a0cc73f115629.tar.gz linux-b422c6cd7e93bb613030f14d7d8a0cc73f115629.tar.bz2 linux-b422c6cd7e93bb613030f14d7d8a0cc73f115629.zip |
{cfg,mac}80211: move mandatory rates calculation to cfg80211
Move mandatory rates calculation to cfg80211, shared with non mac80211 drivers.
Signed-off-by: Ashok Nagarajan <ashok@cozybit.com>
[extend documentation]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 32a2f1b20861..58f6302da145 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -3005,6 +3005,15 @@ struct ieee80211_rate * ieee80211_get_response_rate(struct ieee80211_supported_band *sband, u32 basic_rates, int bitrate); +/** + * ieee80211_mandatory_rates - get mandatory rates for a given band + * @sband: the band to look for rates in + * + * This function returns a bitmap of the mandatory rates for the given + * band, bits are set according to the rate position in the bitrates array. + */ +u32 ieee80211_mandatory_rates(struct ieee80211_supported_band *sband); + /* * Radiotap parsing functions -- for controlled injection support * |