mac80211: avoid useless memory write on each frame RX
authorJohannes Berg <johannes.berg@intel.com>
Thu, 17 Mar 2016 13:41:37 +0000 (15:41 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 5 Apr 2016 19:34:21 +0000 (21:34 +0200)
commitb100e5d622aa8719cc2e776c397817afe24b1f3b
tree98c7d9e237c1bbebbfbcd2e27cd7a9748d6768a4
parent2c61cf9c56cbc4e0a4475232659ac30bb4c28674
mac80211: avoid useless memory write on each frame RX

In the likely case that probe_count is 0, don't write to the
memory there.

Also use ifmgd consistently in the function, instead of using
sdata->u.mgd as well.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c