[RAMEN9610-6379][9610]wlbt: change the path of wlan mac address
authoravoid <bing3.lin@samsung.com>
Tue, 18 Sep 2018 02:08:29 +0000 (10:08 +0800)
committerhskang <hs1218.kang@samsung.com>
Sat, 26 Jan 2019 06:33:14 +0000 (15:33 +0900)
The address is no longer read from the partition, but from the file node

Change-Id: I3abd45f4dd44e9780d927edf038e234786e81585
Signed-off-by: avoid <bing3.lin@samsung.com>
drivers/net/wireless/scsc/Kconfig [changed mode: 0755->0644]
drivers/net/wireless/scsc/dev.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 97db087..7978b17
@@ -123,7 +123,7 @@ endif
 
 config SCSC_WLAN_MAC_ADDRESS_FILENAME
        string "MAC address filename"
-       default "/efs/wifi/.mac.info"
+       default "/sys/module/scsc_wlan/parameters/mac_addr"
        ---help---
          Select the programmed MAC address file.
 
old mode 100755 (executable)
new mode 100644 (file)
index 6302411..9844cdf
@@ -41,6 +41,10 @@ static char *maddr_file = "mac.txt";
 module_param(maddr_file, charp, S_IRUGO | S_IWUSR);
 MODULE_PARM_DESC(maddr_file, "mac address filename");
 
+static char *mac_addr = "00:00:00:00:00:00";
+module_param(mac_addr, charp, S_IRUGO | S_IWUSR);
+MODULE_PARM_DESC(mac_addr, "wifi mac address");
+
 static bool term_udi_users = true;
 module_param(term_udi_users, bool, S_IRUGO | S_IWUSR);
 MODULE_PARM_DESC(term_udi_users, "Try to terminate UDI user space users (applications) connected on the cdev (0, 1)");