File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -306,6 +306,7 @@ static int nfq_main(void)
306306 if (!nfq_init (& h ,& qh ))
307307 goto err ;
308308
309+ #ifdef HAS_FILTER_SSID
309310 if (params .filter_ssid_present )
310311 {
311312 if (!wlan_info_init ())
@@ -315,6 +316,7 @@ static int nfq_main(void)
315316 }
316317 DLOG ("wlan info capture initialized\n" );
317318 }
319+ #endif
318320
319321 if (params .daemon ) daemonize ();
320322
@@ -340,9 +342,11 @@ static int nfq_main(void)
340342 while ((rd = recv (fd , buf , sizeof (buf ), 0 )) >= 0 )
341343 {
342344 ReloadCheck ();
345+ #ifdef HAS_FILTER_SSID
343346 if (params .filter_ssid_present )
344347 if (!wlan_info_get_rate_limited ())
345348 DLOG_ERR ("cannot get wlan info\n" );
349+ #endif
346350 if (rd )
347351 {
348352 int r = nfq_handle_packet (h , (char * )buf , (int )rd );
@@ -359,12 +363,16 @@ static int nfq_main(void)
359363 } while (e == ENOBUFS );
360364
361365 nfq_deinit (& h ,& qh );
366+ #ifdef HAS_FILTER_SSID
362367 wlan_info_deinit ();
368+ #endif
363369 return 0 ;
364370err :
365371 if (Fpid ) fclose (Fpid );
366372 nfq_deinit (& h ,& qh );
373+ #ifdef HAS_FILTER_SSID
367374 wlan_info_deinit ();
375+ #endif
368376 return 1 ;
369377}
370378
You can’t perform that action at this time.
0 commit comments