Skip to contentSkip to conversation

madwifi staging and hostap-deamon support for madwifi

RFC Rod Whitby 2 participants 2 messages Mar 12, 2007

lore
Share & tools
lore

Rod Whitby

author
#0 lore raw

I want to get hostap-deamon working for madwifi (on the IOMega NAS100d, and D-Link DSMG-600 RevA).

Currently, it does not support madwifi, and the current madwifi-ng recipe is putting the include files in a place other than the place that hostapd looks for them during the compile. Also, hostapd has an RDEPENDS on hostapd-modules, which does not make sense for madwifi.

I'd like to change madwifi-ng to put the files in the right place, and then change hostap-daemon to enable madwifi support and use those include files. Are there any other known packages that use madwifi include files that may be affected?

I can either enable this globally, or enable it for the slugos distro only, or enable it for ixp4xx machines only. Which should I do?

Here is the madwifi-ng.inc patch:

Review

Quoted 9 lines

do_stage() {

(quoted diff) +3 -4
-       install -d ${STAGING_INCDIR}/${PN}/include
-       install -d ${STAGING_INCDIR}/${PN}/net80211
-       cp --dereference include/compat.h ${STAGING_INCDIR}/${PN}/include/
-       cp --dereference net80211/*.h ${STAGING_INCDIR}/${PN}/net80211/
+       install -d ${STAGING_INCDIR}/net80211
+       cp --dereference include/compat.h ${STAGING_INCDIR}/net80211/
+       cp --dereference net80211/*.h ${STAGING_INCDIR}/net80211/
 }

Here is the hostap-daemon.inc patch (example using a _ixp4xx override):

Review

Quoted 8 lines
(quoted diff) +6 -1
-RDEPENDS = "hostap-modules hostap-utils (${PV})"
+RDEPENDS = "hostap-utils (${PV})"
+DEPENDS_append_ixp4xx = " madwifi-ng"
 
+do_configure_ixp4xx() {
+        sed -e 's/\#CONFIG_DRIVER_MADWIFI=y/CONFIG_DRIVER_MADWIFI=y/' \
+               '${WORKDIR}/defconfig' >>'${S}/.config'
+}

If there are no responses, I will continue with the madwifi-ng change as above, and do the override for all _ixp4xx machines.

-- Rod

#1 lore raw
Quoted 2 lines · Rod Whitby

I want to get hostap-deamon working for madwifi (on the IOMega NAS100d, and D-Link DSMG-600 RevA).

And also on any other PCI equipped machines (madwifi req pci iirc).

Quoted 6 lines

Currently, it does not support madwifi, and the current madwifi-ng recipe is putting the include files in a place other than the place that hostapd looks for them during the compile.

Also, hostapd has an RDEPENDS on hostapd-modules, which does not make sense for madwifi.

Hostap-modules dependency should be dropped - we use hostap from kernel.

I would like to get latest stable hostapd in OE.

Quoted 4 lines

I'd like to change madwifi-ng to put the files in the right place, and then change hostap-daemon to enable madwifi support and use those include files. Are there any other known packages that use madwifi include files that may be affected?

wpa-supplicant use madwifi and also has all needed code for madwifi support on PCI equipped machines.

Quoted 2 lines

I can either enable this globally, or enable it for the slugos distro only, or enable it for ixp4xx machines only. Which should I do?

Enable it for PCI equipped machines like it is in wpa-supplicant 0.5.x

Quoted 10 lines

Here is the hostap-daemon.inc patch (example using a _ixp4xx override):

Quoted 9 lines
(quoted diff) +4 -1
-RDEPENDS = "hostap-modules hostap-utils (${PV})"
+RDEPENDS = "hostap-utils (${PV})"
+DEPENDS_append_ixp4xx = " madwifi-ng"
 
+do_configure_ixp4xx() {
+        sed -e

's/\#CONFIG_DRIVER_MADWIFI=y/CONFIG_DRIVER_MADWIFI=y/' \ +
'${WORKDIR}/defconfig' >>'${S}/.config'
+}

Do this like it is done in wpa-supplicant 0.5.x

Thx

Signature · 5 lines
JID: hrw-jabber.org
OpenEmbedded developer/consultant

 Truly a man of few words. I'll bet you don't know what either one of them
 means.