Merge "[rdkb][common][bsp][Refactor and sync wifi from openwrt]"
diff --git a/recipes-wifi/hostapd/files/hostapd-init.sh b/recipes-wifi/hostapd/files/hostapd-init.sh
index e3f6197..13e7fc9 100644
--- a/recipes-wifi/hostapd/files/hostapd-init.sh
+++ b/recipes-wifi/hostapd/files/hostapd-init.sh
@@ -68,7 +68,9 @@
                     touch /nvram/hostapd-acl$ifidx
                     touch /nvram/hostapd$ifidx.psk
                     touch /nvram/hostapd-deny$ifidx
-                    touch /tmp/$dev-wifi$ifidx
+                    if [ $phyidx = $ifidx ]; then
+                        touch /tmp/$dev-wifi$ifidx
+                    fi
                     hostapd_cli -i global raw ADD bss_config=$dev:/nvram/hostapd"$ifidx".conf
 		fi
 	    done