You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/11/03 13:33:40 UTC

[GitHub] [incubator-nuttx] TE-Masatoshi-Ueno commented on a change in pull request #2175: gs2200m: Check disassociation from AP and enable rejoin

TE-Masatoshi-Ueno commented on a change in pull request #2175:
URL: https://github.com/apache/incubator-nuttx/pull/2175#discussion_r515762680



##########
File path: drivers/wireless/gs2200m.c
##########
@@ -3071,6 +3086,33 @@ static void gs2200m_irq_worker(FAR void *arg)
 
   t = gs2200m_recv_pkt(dev, pkt_dat);
 
+  if (true == dev->disassociate_flag)
+    {
+      /* Disassociate recovery */
+
+      wlwarn("=== receive DISASSOCIATE\n");
+      dev->valid_cid_bits = 0;
+
+      do
+        {
+          while (gs2200m_recv_pkt(dev, pkt_dat) != TYPE_TIMEOUT)
+            {
+              /* release & initialize pkt_dat before retry */
+
+              _release_pkt_dat(dev, pkt_dat);
+              memset(pkt_dat, 0, sizeof(pkt_dat));
+
+              usleep(100 * 1000);
+            }

Review comment:
       I update to gs2200m_recv_pkt(dev, NULL) and nxsig_usleep(), and add comment at 76f2069 .




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org