diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-02-10 15:25:43 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-13 13:45:29 -0500 |
commit | 7ab17c45b566b8a4a87ceac6cd6c6d77857189ab (patch) | |
tree | 0567c20fba3a836442c70a25c0a06ddf87485faf /net/mac80211 | |
parent | 14b80724367dfdc86f4807461dd1f7f2dd630416 (diff) |
mac80211: remove bssid argument from prepare_for_handlers
It's a little confusing to get the BSSID outside the function
and pass it in, when it's only needed for this function, so
change that.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/rx.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 0e030d3fbdec..5a733c52f889 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
@@ -2064,9 +2064,10 @@ static void ieee80211_invoke_rx_handlers(struct ieee80211_sub_if_data *sdata, | |||
2064 | /* main receive path */ | 2064 | /* main receive path */ |
2065 | 2065 | ||
2066 | static int prepare_for_handlers(struct ieee80211_sub_if_data *sdata, | 2066 | static int prepare_for_handlers(struct ieee80211_sub_if_data *sdata, |
2067 | u8 *bssid, struct ieee80211_rx_data *rx, | 2067 | struct ieee80211_rx_data *rx, |
2068 | struct ieee80211_hdr *hdr) | 2068 | struct ieee80211_hdr *hdr) |
2069 | { | 2069 | { |
2070 | u8 *bssid = ieee80211_get_bssid(hdr, rx->skb->len, sdata->vif.type); | ||
2070 | int multicast = is_multicast_ether_addr(hdr->addr1); | 2071 | int multicast = is_multicast_ether_addr(hdr->addr1); |
2071 | 2072 | ||
2072 | switch (sdata->vif.type) { | 2073 | switch (sdata->vif.type) { |
@@ -2169,7 +2170,6 @@ static void __ieee80211_rx_handle_packet(struct ieee80211_hw *hw, | |||
2169 | int prepares; | 2170 | int prepares; |
2170 | struct ieee80211_sub_if_data *prev = NULL; | 2171 | struct ieee80211_sub_if_data *prev = NULL; |
2171 | struct sk_buff *skb_new; | 2172 | struct sk_buff *skb_new; |
2172 | u8 *bssid; | ||
2173 | 2173 | ||
2174 | hdr = (struct ieee80211_hdr *)skb->data; | 2174 | hdr = (struct ieee80211_hdr *)skb->data; |
2175 | memset(&rx, 0, sizeof(rx)); | 2175 | memset(&rx, 0, sizeof(rx)); |
@@ -2208,9 +2208,8 @@ static void __ieee80211_rx_handle_packet(struct ieee80211_hw *hw, | |||
2208 | if (sdata->vif.type == NL80211_IFTYPE_MONITOR) | 2208 | if (sdata->vif.type == NL80211_IFTYPE_MONITOR) |
2209 | continue; | 2209 | continue; |
2210 | 2210 | ||
2211 | bssid = ieee80211_get_bssid(hdr, skb->len, sdata->vif.type); | ||
2212 | rx.flags |= IEEE80211_RX_RA_MATCH; | 2211 | rx.flags |= IEEE80211_RX_RA_MATCH; |
2213 | prepares = prepare_for_handlers(sdata, bssid, &rx, hdr); | 2212 | prepares = prepare_for_handlers(sdata, &rx, hdr); |
2214 | 2213 | ||
2215 | if (!prepares) | 2214 | if (!prepares) |
2216 | continue; | 2215 | continue; |