[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)
commit7746174be6185bc0d3c865acaf558ce200125656
tree01db36e2d9c4247e5f618e56b28d82e8a000c31f
parent6443d0765a6fad2b2d02ccce02e3b650c5fb768b
[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