[Feature][task-view-306]merge P56U08(patch6) version

Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No

Change-Id: I8e809511ac30c97228dd110c304b4a08f4af36d7
diff --git a/ap/app/Script/scripts/wan_ipv4.sh b/ap/app/Script/scripts/wan_ipv4.sh
index 7aac6ff..e71850d 100755
--- a/ap/app/Script/scripts/wan_ipv4.sh
+++ b/ap/app/Script/scripts/wan_ipv4.sh
@@ -120,7 +120,9 @@
 		pswan_nm=`nv get $wan_if"_nm"`
 		
 		#ifconfig $wan_if down 2>>$test_log
-		ifconfig $wan_if $pswan_ip netmask 255.255.255.0 up 2>>$test_log
+		ifconfig $wan_if $pswan_ip up 2>>$test_log
+		wan_nm=`nv get static_wan_netmask`
+		ifconfig $wan_if netmask $wan_nm 2>>$test_log
 		if [ $? -ne 0 ];then
 	        echo "Error: ifconfig $wan_if $pswan_ip up failed." >> $test_log
         fi
@@ -299,4 +301,4 @@
 		tc_tbf.sh down $def_cid
 	fi
 	linkdown $2 $3	
-fi
+fi
\ No newline at end of file