diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2010-11-30 12:19:34 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-30 19:58:07 +0100 |
commit | 08ca944eb240b2299e743c76b43fbc7c2dd251de (patch) | |
tree | 9782965ad4754969685cfd440b81ded25d4d6023 /drivers/net | |
parent | mac80211/rt2x00: add ieee80211_tx_status_ni() (diff) | |
download | linux-08ca944eb240b2299e743c76b43fbc7c2dd251de.tar.xz linux-08ca944eb240b2299e743c76b43fbc7c2dd251de.zip |
mac80211: Minor optimization in ieee80211_rx_h_data
Remove a superfluous ieee80211_is_data check as that was checked a few
lines before already and we wont't get here for non-data frames at all.
Second, the frame was already converted to 802.3 header format and
reading the fc and addr1 fields was only possible because the 802.3
header is short enough and didn't overwrite the relevant parts of the
802.11 header. Make the code more obvious by checking the ethernet
header's h_dest field.
Furthermore reorder the conditions to reduce the number of checks
when dynamic powersave is not needed (AP mode for example).
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions