aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-03-27 09:55:31 -0400
committerJohannes Berg <johannes.berg@intel.com>2013-04-08 05:08:32 -0400
commitddc4db2e3d5393ede7a9222bb3b7522a603a4678 (patch)
tree1e9d2e939d950b276c8271bbab2228e95f75a248 /net/mac80211
parent2b730daacee6c318bce7b6373c19909e36a74590 (diff)
mac80211: make ieee802_11_parse_elems an inline
This (slightly) reduces the code size. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/ieee80211_i.h8
-rw-r--r--net/mac80211/util.c6
2 files changed, 6 insertions, 8 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 55fb382a8199..8d5dcbf17bbc 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -1492,11 +1492,15 @@ static inline void ieee80211_tx_skb(struct ieee80211_sub_if_data *sdata,
1492 ieee80211_tx_skb_tid(sdata, skb, 7); 1492 ieee80211_tx_skb_tid(sdata, skb, 7);
1493} 1493}
1494 1494
1495void ieee802_11_parse_elems(u8 *start, size_t len,
1496 struct ieee802_11_elems *elems);
1497u32 ieee802_11_parse_elems_crc(u8 *start, size_t len, 1495u32 ieee802_11_parse_elems_crc(u8 *start, size_t len,
1498 struct ieee802_11_elems *elems, 1496 struct ieee802_11_elems *elems,
1499 u64 filter, u32 crc); 1497 u64 filter, u32 crc);
1498static inline void ieee802_11_parse_elems(u8 *start, size_t len,
1499 struct ieee802_11_elems *elems)
1500{
1501 ieee802_11_parse_elems_crc(start, len, elems, 0, 0);
1502}
1503
1500u32 ieee80211_mandatory_rates(struct ieee80211_local *local, 1504u32 ieee80211_mandatory_rates(struct ieee80211_local *local,
1501 enum ieee80211_band band); 1505 enum ieee80211_band band);
1502 1506
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 43465b6e4778..447e6651e7fa 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -898,12 +898,6 @@ u32 ieee802_11_parse_elems_crc(u8 *start, size_t len,
898 return crc; 898 return crc;
899} 899}
900 900
901void ieee802_11_parse_elems(u8 *start, size_t len,
902 struct ieee802_11_elems *elems)
903{
904 ieee802_11_parse_elems_crc(start, len, elems, 0, 0);
905}
906
907void ieee80211_set_wmm_default(struct ieee80211_sub_if_data *sdata, 901void ieee80211_set_wmm_default(struct ieee80211_sub_if_data *sdata,
908 bool bss_notify) 902 bool bss_notify)
909{ 903{