]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: remove short frame test and counter
authorJohannes Berg <johannes.berg@intel.com>
Tue, 16 Jun 2015 13:05:57 +0000 (15:05 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 17 Jul 2015 13:37:55 +0000 (15:37 +0200)
commitaa9f1128f02863ee290c1ca4d3850f748b7a744b
tree690c6fcf6d5de3f0985ad5ac30f691d8cfcfec4a
parentb01494b10816240a86a150160f9e55030934fa60
mac80211: remove short frame test and counter

Short frames less than 16 octets are already blocked in the monitor
code by the should_drop_frame() function, and cannot get into the
regular RX path. Therefore, this check can never trigger and the
counter invariably stays zero. Remove the useless code.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/debugfs.c
net/mac80211/ieee80211_i.h
net/mac80211/rx.c