[NEUS7920-133]wlbt: allow MAC address file to be in /proc
authorIvan Priest <i.priest@samsung.com>
Wed, 13 Feb 2019 11:51:17 +0000 (11:51 +0000)
committerYoungmin Nam <youngmin.nam@samsung.com>
Tue, 21 May 2019 10:45:23 +0000 (19:45 +0900)
commit77c3261cae6d7c7177d39c1b880a3c1e30302ac9
tree01db36e2d9c4247e5f618e56b28d82e8a000c31f
parentbfa5e679a7a9197179a318567946148789606aa6
[NEUS7920-133]wlbt: allow MAC address file to be in /proc

One customer is placing the MAC address in procfs, and
the current mx140_file reader cannot handle the
zero length virtual files. Fix this and check that
a loaded file contains a valid MAC address.

This is the replacement for conflicting customer code
that appeared upstream.

Change-Id: Ib606b16c6f07ddd86810772d54445780f000f96c
SCSC-Bug-Id: SSB-49343
Signed-off-by: Ivan Priest <i.priest@samsung.com>
drivers/misc/samsung/scsc/mx140_file.c
drivers/net/wireless/scsc/mgt.c