]> 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)
commit058a216d00a0c95094a901e7ae747ea661664a12
treeca71d52236ebe50614c07bb15ef6dbe819cdc2b4
parent4a363cb4f0ef4e53ae5ab7cbf7ff22e04e78f910
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