[pkg-wpa-devel] Bug#610931: Please build wpasupplicant-udeb
Gaudenz Steinlin
gaudenz at debian.org
Sun Jul 24 23:34:27 UTC 2011
Hi
So I actually made some progress today. Here's my status report.
Excerpts from Kel Modderman's message of 2011-07-24 00:58:08 +0200:
> On Sun, 24 Jul 2011 08:02:48 AM Gaudenz Steinlin wrote:
> > >
> > > nl80211 is the way forward. It would require libnl to be included in D-I.
> >
> > AFAICS with my iwlwifi card both nl80211 and wext work. Is there any
> > practical advantage of nl80211. If possible I would like to avoid
> > having to include another library into d-i.
>
> WEXT is deprecated upstream, nl80211 is in active development and all new wifi
> drivers will use it. Looking into my crystal ball I see that eventually the
> WEXT compat layer will decay into something that nobody wants to keep
> maintaining.
>
> If D-I integration of wpasupplicant were to go ahead without including support
> for nl80211 it would be a waste of time imo.
After discussing this on IRC we (debian-boot) agreed to include wext
and nl80211 support.
> > > > > Has there been any solution for the netcfg integration already, see
> > > > > <201011041811.11753.kel at otaku42.de> [1], referring to the originally
> > > > > proposed introduction of embedded source copies of wpasuppliant's
> > > > > wpa_ctrl.[hc] into netcfg. Please also keep in mind that crda/
> > > > > wireless-regdb is required for accessing channels 11-13/14 on modern
> > > > > drivers.
> > > >
> > > > I've applied the existing WPA netcfg support patches developed by Glenn
> > > > Saberton, and they do appear to include a (stripped down) wpa_ctrl.c.
> > >
> > > That stripped down crap probably was extracted from a sideline project
> > > (python-wpactrl) I was working on, and is not good long term solution.
> > >
> > > wpa_ctrl.{c,h} from current wpasupplicant source tree have lots more
> > > dependency on other stuff. Extracting and patching wpa_ctrl.{c,h} to be
> > > standalone is something which should be avoided - I just do not know how
> > > currently.
> > >
> > > Asked upstream wpa_supplicant if wpa_ctrl could be provided in a way
> > > where it could be a shared library but received no response.
> >
> > Is there any progress on this?
>
> Nope.
Do you think it's worth poking about this again? The current code in
netcfg works (at least for the debconf wpa-psk network), but a real
library would be nicer ;-).
>
> >
> > > > I
> > > > have no idea what the story is with crda/wireless-regdb, as I said
> > > > before, I don't know anything about WPA. If you'd like to help out,
> > > > though, your knowledge would be greatly valued.
> > >
> > > I wouldn't mind helping out, don't know how though, Have little idea
> > > about D-I environment and took long enough to just reply to this request
> > > to feel a little embarrassed.
> > >
> > > Also haven't seen the proposed change to netcfg anytime in recent past to
> > > comment further. Can that be reviewed?
> >
> > It's in branch people/womble/wpa of
> > git://git.debian.org/git/d-i/netcfg.
> >
> > Gaudenz
>
> Thanks for the link.
Do you have time to look at the code in the next days? Otherwise I'll
probably just merge as it is now and we can fix things later if there
are problems.
I have another yet unresolved problem: With the proposed udeb
configuration from the original patch and using the netlink driver I can connect to the network,
but DHCP does not work. When I build a udeb with the same
configuration as for the normal linux package minus DBUS and smartcard
support it works. Do you know which options I need to include to get a
package where DHCP also works with the netlink driver?
Using the wext driver DHCP works in both configurations.
This is the configuration I currently use to produce the working
package:
# Debian's wpa_supplicant build time configuration
CONFIG_DRIVER_WEXT=y
CONFIG_DRIVER_NL80211=y
CONFIG_DRIVER_WIRED=y
CONFIG_AP=y
CONFIG_IEEE8021X_EAPOL=y
CONFIG_EAP_MD5=y
CONFIG_EAP_MSCHAPV2=y
CONFIG_EAP_TLS=y
CONFIG_EAP_PEAP=y
CONFIG_EAP_TTLS=y
CONFIG_EAP_GTC=y
CONFIG_EAP_OTP=y
CONFIG_EAP_SIM=y
#CONFIG_EAP_PSK=y
CONFIG_EAP_PAX=y
CONFIG_EAP_LEAP=y
CONFIG_EAP_AKA=y
CONFIG_EAP_AKA_PRIME=y
#CONFIG_USIM_SIMULATOR=y
CONFIG_WPS=y
#CONFIG_PKCS12=y
#CONFIG_SMARTCARD=y
#CONFIG_PCSC=y
CONFIG_CTRL_IFACE=y
CONFIG_READLINE=y
CONFIG_BACKEND=file
CONFIG_MAIN=main
CONFIG_OS=unix
CONFIG_ELOOP=eloop
CONFIG_L2_PACKET=linux
CONFIG_PEERKEY=y
CONFIG_IEEE80211W=y
CONFIG_TLS=openssl
#CONFIG_CTRL_IFACE_DBUS=y
#CONFIG_CTRL_IFACE_DBUS_NEW=y
#CONFIG_CTRL_IFACE_DBUS_INTRO=y
CONFIG_IEEE80211R=y
CONFIG_DEBUG_FILE=y
CONFIG_DEBUG_SYSLOG=y
#CONFIG_PRIVSEP=y
CONFIG_DELAYED_MIC_ERROR_REPORT=y
This is the configuration where DHCP does not work when using the
netlink driver:
# Debian Installer's wpa_supplicant build time configuration
CONFIG_DRIVER_WEXT=y
CONFIG_DRIVER_NL80211=y
CONFIG_BACKEND=file
#CONFIG_NO_STDOUT_DEBUG=y
CONFIG_DEBUG_FILE=y
CONFIG_NO_AES_EXTRAS=y
#CONFIG_NO_CONFIG_WRITE=y
CONFIG_NO_CONFIG_BLOBS=y
CONFIG_MAIN=main
CONFIG_OS=unix
CONFIG_ELOOP=eloop
CONFIG_L2_PACKET=linux
CONFIG_CTRL_IFACE=y
Thanks,
Gaudenz
--
Ever tried. Ever failed. No matter.
Try again. Fail again. Fail better.
~ Samuel Beckett ~
More information about the Pkg-wpa-devel
mailing list