[rdkb][common][app][Remove unused radio interface]

[Description]
Remove unused radio interface. Change ap mac offset.

[Release-log]
N/A

Change-Id: I0ac5c5f1b207d1de9885c4f60ee119785bc88561
diff --git a/recipes-wifi/hostapd/files/hostapd-init.sh b/recipes-wifi/hostapd/files/hostapd-init.sh
index 7bb37d3..5f0ca0c 100644
--- a/recipes-wifi/hostapd/files/hostapd-init.sh
+++ b/recipes-wifi/hostapd/files/hostapd-init.sh
@@ -13,8 +13,8 @@
 
         band="$(uci get wireless.radio${phyidx}.band)"
         channel="$(uci get wireless.radio${phyidx}.channel)"
-        MAC="$(cat /sys/class/net/wlan${phyidx}/address)"
-        NEW_MAC=$(echo 0x$MAC| awk -F: '{printf "%02x:%s:%s:%s:%s:%s", strtonum($1)+2, $2, $3, $4 ,$5, $6}')
+        MAC="$(cat /sys/class/ieee80211/phy${phyidx}/macaddress)"
+#        NEW_MAC=$(echo 0x$MAC| awk -F: '{printf "%02x:%s:%s:%s:%s:%s", strtonum($1)+2, $2, $3, $4 ,$5, $6}')
         chip="$(cat /sys/class/ieee80211/"$dev"/device/device)"
 
         if [ $chip == "0x7915" ]; then
@@ -28,6 +28,7 @@
             fi
             old_path=$path
         fi
+        iw wlan$phyidx del
         if [ "$(uci get wireless.radio${phyidx}.disabled)" == "1" ]; then
             phyidx=$(($phyidx + 1))
 			continue
@@ -73,7 +74,7 @@
         fi
 
 	    sed -i "/^interface=.*/c\interface=wifi$devidx" /nvram/hostapd"$devidx".conf
-        sed -i "/^bssid=/c\bssid=$NEW_MAC" /nvram/hostapd"$devidx".conf
+        sed -i "/^bssid=/c\bssid=$MAC" /nvram/hostapd"$devidx".conf
         echo "wpa_psk_file=/nvram/hostapd$devidx.psk" >> /nvram/hostapd"$devidx".conf
         iw phy phy$phyidx interface add wifi$devidx type __ap
         touch /nvram/hostapd-acl$devidx