]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: use firmware station lookup, combine code
authorJohannes Berg <johannes.berg@intel.com>
Thu, 24 Sep 2015 16:29:00 +0000 (18:29 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 1 Dec 2015 19:17:52 +0000 (21:17 +0200)
commit6e5a3edd154e3ff38c146325a6e281eb16427c42
tree8de3e37b6aa9f9e19b85261013f4e775423922f7
parent9ece6fdfad84c14ea18e087d255f461fc9797737
iwlwifi: mvm: use firmware station lookup, combine code

In most cases, the firmware will already match the station that
we received a given frame from and tell us the station ID in the
RX status, so we can look up the station from that. This lets us
skip the (more expensive) hash table lookup in mac80211.

Also change the fallback case (no station info from the firmware)
to not attempt to look up a multicast source address.

While at it, also combine all the code using the station into a
single if block.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rx.h
drivers/net/wireless/intel/iwlwifi/mvm/rx.c