Debian Bug report logs - #634935
ioctl error in wpasupplicant on kfreebsd/wheezy

version graph

Package: wpasupplicant; Maintainer for wpasupplicant is Debian/Ubuntu wpasupplicant Maintainers <pkg-wpa-devel@lists.alioth.debian.org>; Source for wpasupplicant is src:wpa.

Reported by: Zac Slade <krakrjak@gmail.com>

Date: Thu, 21 Jul 2011 01:27:02 UTC

Severity: minor

Tags: help

Found in version wpasupplicant/0.7.3-3

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian/Ubuntu wpasupplicant Maintainers <pkg-wpa-devel@lists.alioth.debian.org>:
Bug#634935; Package wpasupplicant. (Thu, 21 Jul 2011 01:27:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Zac Slade <krakrjak@gmail.com>:
New Bug report received and forwarded. Copy sent to Debian/Ubuntu wpasupplicant Maintainers <pkg-wpa-devel@lists.alioth.debian.org>. (Thu, 21 Jul 2011 01:27:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Zac Slade <krakrjak@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Cc: Robert Millan <rmh@debian.org>, debian-bsd@lists.debian.org
Subject: ioctl error in wpasupplicant on kfreebsd/wheezy
Date: Wed, 20 Jul 2011 20:22:52 -0500
Package: wpasupplicant
Version: 0.7.3-3
Severity: minor
Tags: wheezy

When I connect using
 $ wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf

I get the following error
 ioctl[SIOC80211, op=20, val=0, arg_len=7]: Invalid argument

Upon disconnecting I get a slightly different error
 ioctl[SIOC80211, op=26, val=0, arg_len=]: Operation not supported

I can connect pretty reliably to my AP, but I still get these errors
on every run
whether it's successful or not.  Other than these error messages
wpa_supplicant works well under kfreebsd/wheezy.  It works so well in fact I
can file this bug using it!



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (700, 'testing'), (650, 'testing-proposed-updates'),
(500, 'unstable'), (300, 'experimental')
Architecture: kfreebsd-i386 (i686)

Kernel: kFreeBSD 8.2-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages wpasupplicant depends on:
ii  adduser                       3.113      add and remove users and groups
ii  libc0.1                       2.13-7     Embedded GNU C Library: Shared lib
ii  libdbus-1-3                   1.4.12-2   simple interprocess messaging syst
ii  libpcap0.8                    1.1.1-7    system interface for user-level pa
ii  libpcsclite1                  1.7.2-2    Middleware to access a smart card
ii  libreadline6                  6.2-2      GNU readline and history libraries
ii  libssl1.0.0                   1.0.0d-3   SSL shared libraries
ii  lsb-base                      3.2-27     Linux Standard Base 3.2 init scrip

wpasupplicant recommends no packages.

Versions of packages wpasupplicant suggests:
pn  libengine-pkcs11-openssl      <none>     (no description available)
pn  wpagui                        <none>     (no description available)

-- no debconf information

-- 
Zac Slade
krakrjak@gmail.com




Information forwarded to debian-bugs-dist@lists.debian.org, Debian/Ubuntu wpasupplicant Maintainers <pkg-wpa-devel@lists.alioth.debian.org>:
Bug#634935; Package wpasupplicant. (Thu, 21 Jul 2011 09:00:44 GMT) Full text and rfc822 format available.

Acknowledgement sent to Robert Millan <rmh@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian/Ubuntu wpasupplicant Maintainers <pkg-wpa-devel@lists.alioth.debian.org>. (Thu, 21 Jul 2011 09:00:46 GMT) Full text and rfc822 format available.

Message #10 received at 634935@bugs.debian.org (full text, mbox):

From: Robert Millan <rmh@debian.org>
To: Zac Slade <krakrjak@gmail.com>
Cc: 634935@bugs.debian.org
Subject: Re: ioctl error in wpasupplicant on kfreebsd/wheezy
Date: Thu, 21 Jul 2011 10:58:05 +0200
2011/7/21 Zac Slade <krakrjak@gmail.com>:
> I get the following error
>  ioctl[SIOC80211, op=20, val=0, arg_len=7]: Invalid argument
>
> Upon disconnecting I get a slightly different error
>  ioctl[SIOC80211, op=26, val=0, arg_len=]: Operation not supported

I thought these were critical errors!  Anyway, it might help to figure
out things like:

- Do they happen with kfreebsd-9? (available in experimental)
- Do they happen when you run wpa_supplicant in a FreeBSD chroot?  If
not, do the ioctl failures show up in ktrace?
- Do they happen when you run Debian userland on an upstream FreeBSD
kernel? (this test is non-obvious, see FAQ for details on how to do
it)

-- 
Robert Millan




Information forwarded to debian-bugs-dist@lists.debian.org, Debian/Ubuntu wpasupplicant Maintainers <pkg-wpa-devel@lists.alioth.debian.org>:
Bug#634935; Package wpasupplicant. (Thu, 21 Jul 2011 13:54:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Zac Slade <krakrjak@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian/Ubuntu wpasupplicant Maintainers <pkg-wpa-devel@lists.alioth.debian.org>. (Thu, 21 Jul 2011 13:54:03 GMT) Full text and rfc822 format available.

Message #15 received at 634935@bugs.debian.org (full text, mbox):

From: Zac Slade <krakrjak@gmail.com>
To: Robert Millan <rmh@debian.org>
Cc: 634935@bugs.debian.org
Subject: Re: ioctl error in wpasupplicant on kfreebsd/wheezy
Date: Thu, 21 Jul 2011 08:51:40 -0500
On Thu, Jul 21, 2011 at 3:58 AM, Robert Millan <rmh@debian.org> wrote:
> 2011/7/21 Zac Slade <krakrjak@gmail.com>:
>> I get the following error
>>  ioctl[SIOC80211, op=20, val=0, arg_len=7]: Invalid argument
>>
>> Upon disconnecting I get a slightly different error
>>  ioctl[SIOC80211, op=26, val=0, arg_len=]: Operation not supported
>
> I thought these were critical errors!  Anyway, it might help to figure
> out things like:
>
> - Do they happen with kfreebsd-9? (available in experimental)
> - Do they happen when you run wpa_supplicant in a FreeBSD chroot?  If
> not, do the ioctl failures show up in ktrace?
> - Do they happen when you run Debian userland on an upstream FreeBSD
> kernel? (this test is non-obvious, see FAQ for details on how to do
> it)

I thought they might be critical too, but after enough learning and
testing it just turned out to be cosmetic.  I will get a ktrace for
the current buggy stack and then try to gather more information using
the kfreebsd-9 kernel from experimental.

-- 
Zac Slade
krakrjak@gmail.com




Information forwarded to debian-bugs-dist@lists.debian.org, Debian/Ubuntu wpasupplicant Maintainers <pkg-wpa-devel@lists.alioth.debian.org>:
Bug#634935; Package wpasupplicant. (Sun, 02 Oct 2011 18:33:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Stefan Lippers-Hollmann" <s.L-H@gmx.de>:
Extra info received and forwarded to list. Copy sent to Debian/Ubuntu wpasupplicant Maintainers <pkg-wpa-devel@lists.alioth.debian.org>. (Sun, 02 Oct 2011 18:33:03 GMT) Full text and rfc822 format available.

Message #20 received at 634935@bugs.debian.org (full text, mbox):

From: "Stefan Lippers-Hollmann" <s.L-H@gmx.de>
To: 644084@bugs.debian.org
Cc: Robert Millan <rmh@debian.org>, control@bugs.debian.org, 634935@bugs.debian.org, Zac Slade <krakrjak@gmail.com>
Subject: Re: [pkg-wpa-devel] Bug#644084: failed to initialize AP scan (kfreebsd/squeeze)
Date: Sun, 2 Oct 2011 20:28:36 +0200
tags 644084 + help
tags 634935 + help
thanks

Hi

On Sunday 02 October 2011, Robert Millan wrote:
> Package: wpasupplicant
> Version: 0.6.10-2.1
> Severity: grave
> User: debian-bsd@lists.debian.org
> Usertags: kfreebsd
> 
> **** This problem is fixed in wpasupplicant 0.7.3-4 ****
> 
> **** This problem is NOT the same as #634935 ****
> 
> wpasupplicant 0.6.10-2.1 failed to initialize AP scan on my Squeeze
> Debian GNU/kFreeBSD system:
> 
> $ sudo wpa_supplicant -i wlan0 -c wlan.conf
> ioctl[SIOCS80211, op 103, arg 0x0]: Invalid argument
> Failed to initiate AP scan.
> ioctl[SIOCS80211, op 103, arg 0x0]: Invalid argument
> Failed to initiate AP scan.
> [... repeatedly untill interrupted ]
> 
> Notice that the ioctl error is also present in bug #634935.  It is probably
> unrelated to this problem.
[...]

The only configuration change between 0.6.10-2.1 and 0.7.3-4 affecting 
kfreebsd is enabling CONFIG_IEEE80211W=y, which shouldn't have any 
impact on scanning. However there have been really massive BSD related
changes in wpasupplicant between the 0.6 and 0.7 branches, including 
some explicitly referencing compatibility with FreeBSD 8.0[1]. Looking
at their size and impact, just applying them to wpasupplicant 0.6.10
or doing simple backports doesn't appear to be possible or even 
acceptable for upcoming squeeze stable releases, so a targetted patch 
would be needed.

Unfortunately I'm only running kfreebsd-amd64/ unstable in kvm on a 
linux host so far, so beyond build testing on kfreebsd I can't actually
debug kfreebsd's wlan specifics. Therefore I'd need your input for 
kFreeBSD specific changes, also considering its configuration and in 
particular regarding the newly (in 0.7.3-4) introduced 
wpasupplicant-udeb, which should allow to use wlan/ wpa for netinstalls
in d-i (the wlan support code in d-i mostly relies on wpasupplicant 
and might not need many changes to work on kFreeBSD as well).

Talking about wlan specifics, which wlan card/ kernel module are you 
using to test wpa_supplicant under kFreeBSD (preferably which works
with the kernel in unstable/main and doesn't require a kernel with 
unstripped firmwares)?

[ Unrelated to this, I have been playing with the idea of doing a 
  kFreeBSD-amd64/ unstable installation on real hardware, to allow me
  some further wpasupplicant (or lirc) testing, but all of my systems 
  use lvm2 on top of MSDOS or GPT partition tables spanning the whole 
  drive (/ on lvm2, no dedicated /boot/). This configuration is 
  apparently not supported by Debian/ kFreeBSD yet, e.g. d-i/ partman 
  doesn't offer to use the volume group or existing logical volumes 
  therein and grub2 can't find the root device, if copied manually.
  While I have tested to move kFreeBSD manually to a prepared ufs2 
  filesystem on top of a LVM2 logical volume, which works fine after 
  adapting fstab and setting
	kfreebsd_module_elf /lib/modules/8.2-1-amd64/geom_linux_lvm.ko
  in grub.cfg of an external grub2 install (either on a regular 
  partition or linux / on lvm2) in kvm, I didn't try to move such
  an install to real hardware, yet. ]

Regards
	Stefan Lippers-Hollmann

[1]	http://hostap.epitest.fi/gitweb/gitweb.cgi?p=hostap.git;a=commitdiff;h=88487b0e0b524aae7603c17b7db7985ae9a810c9
	(depends on lots of the previous restructuring)




Added tag(s) help. Request was from "Stefan Lippers-Hollmann" <s.L-H@gmx.de> to control@bugs.debian.org. (Sun, 02 Oct 2011 18:33:09 GMT) Full text and rfc822 format available.

Removed tag(s) wheezy. Request was from Steven Chamberlain <steven@pyro.eu.org> to control@bugs.debian.org. (Sun, 23 Dec 2012 21:48:03 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 19:28:06 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.