Add a vconf key for local MAC address of Wi-Fi device
authorDanny Jeongseok Seo <S.Seo@samsung.com>
Thu, 19 Jul 2012 04:25:04 +0000 (13:25 +0900)
committerDanny Jeongseok Seo <S.Seo@samsung.com>
Thu, 19 Jul 2012 04:25:04 +0000 (13:25 +0900)
debian/changelog
debian/net-config.postinst
packaging/net-config.spec
resources/etc/rc.d/init.d/net-config

index a19f990..21d26ae 100644 (file)
@@ -1,3 +1,11 @@
+net-config (0.1.76) unstable; urgency=low
+
+  * Add a vconf key for local MAC address of Wi-Fi device
+  * Git: slp/pkgs/n/net-config
+  * Tag: net-config_0.1.76
+
+ -- JaeHyun Kim <jeik01.kim@samsung.com>  Tue, 17 Apr 2012 10:28:08 +0900
+
 net-config (0.1.75) unstable; urgency=low
 
   * Modify background scan policy
index 030d494..a3f5f59 100644 (file)
@@ -13,6 +13,8 @@ vconftool set -t string memory/dnet/proxy "" -i
 
 vconftool set -t string memory/wifi/connected_ap_name "" -i
 
+vconftool set -t string db/wifi/bssid_address ""
+
 #Default Call Statistics
 vconftool set -t int db/dnet/statistics/cellular/totalsnt "0"
 vconftool set -t int db/dnet/statistics/cellular/totalrcv "0"
index 5a565ce..f744e56 100644 (file)
@@ -2,7 +2,7 @@
 
 Name:       net-config
 Summary:    TIZEN Network Configuration Module
-Version:    0.1.75
+Version:    0.1.76
 Release:    1
 Group:      System/Network
 License:    Apache License Version 2.0
index eb3821e..c9be073 100755 (executable)
@@ -4,3 +4,10 @@ dlogutil -v threadtime -f /var/log/libnetwork.log -r 1000 -n 10 network &
 dlogutil -v threadtime -f /var/log/net-config.log -r 1000 -n 10 net-config &
 
 /usr/sbin/net-config &
+
+bssid="$(vconftool -t string get db/wifi/bssid_address | sed -n "/\([0-9A-F][0-9A-F]:\)\{5\}[0-9A-F][0-9A-F]/p")"
+if [ "$bssid" = "" ]; then
+       if [ -f /opt/etc/.mac.info ]; then
+               cat /opt/etc/.mac.info | sed -n "/^\([0-9A-F][0-9A-F]:\)\{5\}[0-9A-F][0-9A-F]$/p" | xargs vconftool set -t string db/wifi/bssid_address
+       fi
+fi
\ No newline at end of file