Source: ifupdown
Version:
Severity: n0.8.36 ormal

Dear Debian team,

I   am   using  ifupdown   package on   Debian   11.7   with  one wifi
interface(if-sta0)   in STA mode  with   sysvinit (no systemd).  As  a
result,  of course,  i  am also   using supplicant daemon  supplied by
wpasupplicant Debian package.

In order  to search complex issue  when usging multiple  AP targets, i
would to use debug feature as defined in wpasupplicant documentation.


~$ zgrep debug   /usr/share/doc/wpasupplicant/README.modes.gz

In order to debug connection, association and authentication problems,
increase the verbosity level of wpa_supplicant to log debug output by
adding the wpa-debug-level option to /etc/network/interfaces like in
        wpa-debug-level 3

My   current   configuration  for   this   interface  (if-sta0)  (file
/etc/network/interfaces) is ...

.....
# interface 2.1/17 (if-sta0) (physical):02:00.0 Network controller: Intel Corporation Wireless 7265 (rev 59), WLAN interface on motherboard in STA mode
allow-auto    if-sta0
iface         if-sta0  inet dhcp
      wpa-group       CCMP TKIP
      wpa-pairwise    CCMP TKIP
      wpa-proto       WPA RSN
      wpa-key-mgmt    WPA-PSK
      wpa-auth-alg    OPEN
      wpa-debug-level 3    # either 1,2 or 3
      wpa-driver      wext,nl80211
      wpa-iface       if-sta0
      wpa-ap-scan     1
      wpa-scan-ssid   1
      wpa-logfile     /var/log/wpa_supplicant.log
      wpa-psk         "test-debian"
      wpa-ssid        "hn-tplink-re450-275-2.4Ghz"
      wpa-ctrl_interface /var/run/wpa_supplicant
      wpa-conf        /etc/wpa_supplicant/wpa_supplicant.if-sta0.conf
.....

After following command ....

sudo ifdown if-sta0;sleep 1;sudo ifup -v if-sta0

The  interface shut  down,  then wpasupplicant  is correctly launched,
then  association is done,  and final  dhcp is  also  done, so that no
error occurs, perfect (!)

Debian ifup/ifdown launch daemon with following parameters...

ansible@hn-asusgl752-400:~$ ps auxww |grep supplic
ansible 15775 0.0 0.0 5500 892 pts/1 S+ 14:25 0:00 tail -f /var/log/wpa_supplicant.log root 20123 0.1 0.0 11776 3524 ? Ss 22:23 0:00 /sbin/wpa_supplicant -B -P /run/wpa_supplicant.if-sta0.pid -i if-sta0 -D wext,nl80211 -f /var/log/wpa_supplicant.log -c /etc/wpa_supplicant/wpa_supplicant.if-sta0.conf ansible 20326 0.0 0.0 6228 1048 pts/18 S+ 22:23 0:00 grep supplic


As you can see, it seems that option "-ddd" is  not computed by Debian
infrastructure       when     reading  "wpa-debug-level   3"      into
/etc/network/interfaces,  it is therefore  not  possible to  debug this
daemon.

Thanks to give me one method to force debug daemon mode.

Please give me a method to force debug daemon mode. Please note that I
tried the following line in the  interface definition, but without any
hit ?

pre-up /usr/sbin/wpa_supplicant -B -D nl80211,wext -i if-sta0 -c /etc/wpa_supplicant/wpa_supplicant.if-sta0.conf -f /var/log/wpa_supplicant/wpa_supplicant.log -t -dd

Best regards
--
  -- Jean-Marc LACROIX  (06 82 29 98 66) --
    -- mailto : jeanmarc.lacr...@free.fr   --

Reply via email to