brcmfmac: treat \0 as end of comment when parsing NVRAM
authorRafał Miłecki <zajec5@gmail.com>
Wed, 20 May 2015 11:59:54 +0000 (13:59 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 28 May 2015 08:51:20 +0000 (11:51 +0300)
commit279b4cb7bc143643b6380a7198834f3bfbee7df7
tree9fe98ea141247d95b821ca1c2ed49a39fb12271d
parent5d08408b6f6b28d9a57ab7b2c7419ca8bfc6b8a4
brcmfmac: treat \0 as end of comment when parsing NVRAM

This fixes brcmfmac dealing with NVRAM coming from platform e.g. from a
flash MTD partition. In such cases entries are separated by \0 instead
of \n which caused ignoring whole content after the first "comment".
While platform NVRAM doesn't usually contain comments, we switch to
COMMENT state after e.g. finding an unexpected char in key name.

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