[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)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:26 +0000 (20:23 +0300)
commit07ae62a933e699b4c69a9384c86bec33849148fe
treeb9083fd46fd902b89a8e1c555996b8afe9776a89
parent63035c128b218b2d41c9a041bdedc98b3988cc91
[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