]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: use compare_ether_addr on MAC addresses instead of memcmp
authorFelix Fietkau <nbd@openwrt.org>
Sun, 18 Mar 2012 21:58:04 +0000 (22:58 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Apr 2012 20:09:35 +0000 (16:09 -0400)
commit9a2b0ce09ad227bcae77ce1ca5abf551fbe930c0
tree0ee780fb5dd69fb2dc083fba6f037403597a43f9
parent7baa8db1c0adc32581d73d69f299a20394ad8505
cfg80211: use compare_ether_addr on MAC addresses instead of memcmp

Because of the constant size and guaranteed 16 bit alignment, the inline
compare_ether_addr function is much cheaper than calling memcmp.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/mlme.c
net/wireless/scan.c