[pisa-src] r2260 - trunk/tools/iwlist_parser.c

  • From: Hanno Wirtz <hanno.wirtz@xxxxxxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 08 Apr 2010 15:20:36 +0200

Author: wirtz
Date: Thu Apr  8 15:20:36 2010
New Revision: 2260

Log:
completed debug command line optionA
returned check on set ESSID  back to functional

Modified:
   trunk/tools/iwlist_parser.c

Modified: trunk/tools/iwlist_parser.c
==============================================================================
--- trunk/tools/iwlist_parser.c Thu Apr  8 11:34:41 2010        (r2259)
+++ trunk/tools/iwlist_parser.c Thu Apr  8 15:20:36 2010        (r2260)
@@ -215,7 +215,7 @@
             continue;
         }
 
-        if (strncmp(strEssid[i], strSelectedESSID, strlen(strSelectedESSID))
+        if (strncmp(strEssid[i], strSelectedESSID, strlen(strSelectedESSID)) 
== 0
             || !essidflag) {
             dbg_printf("MAC: %s\nESSID: %s\nQuality: %d\nSignalStrength: %d\n",
                        strMAC[i], strEssid[i], iQuality[i], 
iSignalStrength[i]);
@@ -267,10 +267,11 @@
         switch (c) {
         case 'd':
             debug               = true;
+            break;
         case 's':
             essidflag           = true;
             strcpy(strSelectedESSID, optarg);
-            break;
+           break;
         case 'q':
             selectByQualityFlag = true;
             break;

Other related posts: