[BugFix][API-1156][wifi]add retry when first gethostnamebyip fail

Change-Id: I5296572ea32f068054be92e6350ed8f396fef02c
diff --git a/lib/liblynq-wifi6/libwifi6.c b/lib/liblynq-wifi6/libwifi6.c
index 76c5d94..b0dc78b 100755
--- a/lib/liblynq-wifi6/libwifi6.c
+++ b/lib/liblynq-wifi6/libwifi6.c
@@ -1371,6 +1371,18 @@
                 *p = '\0';
             }
             return 0;
+        }else{
+            usleep( 10 * 1000);
+            ret = exec_cmd(cmd, hostname, 32);
+            if( ret == 0)
+            {
+                p= strchr(hostname, '\n');
+                if(p != NULL )
+                {
+                   *p = '\0';
+                }
+                return 0;
+            }
         }
         hostname[0] = '\0';
         RLOGE("---gethostbyaddr fail\n");