Changed the way of checking ifconfig status change from sleep to checking with timeout.

Changed the way of checking ifconfig status change from sleep to checking with timeout.