]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8d678d4ce8a61680a9333c69e320e517a58c77ee
treeca71d52236ebe50614c07bb15ef6dbe819cdc2b4
parentc2e8909e2f687f09379ea6fb6da2768c6c80e903
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