brcmfmac: simplify check stripping v2 NVRAM
authorRafał Miłecki <zajec5@gmail.com>
Wed, 20 May 2015 07:34:21 +0000 (09:34 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 28 May 2015 08:49:07 +0000 (11:49 +0300)
commitae8c2366d77cd7c6de776bcb1dcb6be88f2a1185
treeca71d52236ebe50614c07bb15ef6dbe819cdc2b4
parentc869f77d6abb5d5f9f2f1a661d5c53862a9cad34
brcmfmac: simplify check stripping v2 NVRAM

Comparing NVRAM entry with a full filtering string is simpler than
comparing it with a short prefix and then checking random chars at magic
offsets. The cost of snprintf relatively low, we execute it just once.
Tested on BCM43602 with NVRAM hacked to use V2 format.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/brcm80211/brcmfmac/firmware.c