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)
commitc6fb08aaa879d1a70ed01e9ac1080066abf7ef78
tree0ee780fb5dd69fb2dc083fba6f037403597a43f9
parent4272a27f2f5773f4e4cb5285feba655450a720a8
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