]> git.karo-electronics.de Git - linux-beck.git/commit
brcmfmac: simplify check finding NVRAM v1 device path
authorRafał Miłecki <zajec5@gmail.com>
Wed, 20 May 2015 09:01:08 +0000 (11:01 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 28 May 2015 08:49:44 +0000 (11:49 +0300)
commit5d08408b6f6b28d9a57ab7b2c7419ca8bfc6b8a4
treedd3d90f8d708c4b6fa171773ef6083600dab3ee6
parentae8c2366d77cd7c6de776bcb1dcb6be88f2a1185
brcmfmac: simplify check finding NVRAM v1 device path

With a simple use of snprintf and small buffer we can compare NVRAM
entry value with a full string. This way we avoid checking random chars
at magic offsets.
Tested on BCM43602 with NVRAM hacked to use v1 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