[Prism54-devel] Netgear WG111 USB dongle
Joerg Dorchain
joerg at dorchain.net
Tue Dec 21 14:21:50 UTC 2004
Hi,
I finally came to machine where I could plug in the netgear stick. I
used prism54-usb--devo--0.0--patch-18 downloaded via
http://jbnote.free.fr/prism54usb/ . I had had patch the attached patch
to make it compile (I know this is windows style compilation ,),
but unfortunately, now there is no network device appearing that I can
try.
Any hints appreciated,
Joerg
--- Makefile.orig 2004-12-21 14:51:56.000000000 +0100
+++ Makefile 2004-12-21 14:52:05.000000000 +0100
@@ -13,7 +13,7 @@
endif
#comment the line below if you don't want to build with the madwifi stack
-MADWIFI ?= $(PWD)/../madwifi
+#MADWIFI ?= $(PWD)/../madwifi
ifneq ($(MADWIFI),)
# Add madwifi to the include path
# needed for net80211
--- usb_init.c.orig 2004-12-21 14:51:13.000000000 +0100
+++ usb_init.c 2004-12-21 14:51:13.000000000 +0100
@@ -700,7 +700,9 @@
int p54u_mgmt_readback(struct net_device *netdev)
{
struct p54u *p54u = netdev_priv(netdev);
+#ifdef MADWIFI
struct ieee80211com *ic = &p54u->sc_ic;
+#endif
struct p54u_mgmt_tx1 *tx1;
struct p54u_mgmt_tx2 *tx2;
@@ -787,11 +789,13 @@
switch ( option_magic )
{
+#ifdef MADWIFI
case MGMT_MAC_OPTION :
p54u_info("MAC option");
IEEE80211_ADDR_COPY(ic->ic_myaddr, &mgmt->data);
IEEE80211_ADDR_COPY(netdev->dev_addr, &mgmt->data);
break;
+#endif
case MGMT_END_OPTION :
p54u_info("End of options after %i bytes processed without a final option seen, please report", run_length);
run_length = total_length;
@@ -1134,9 +1138,11 @@
p54u_dbg("Cleared interface data.\n");
/* regroup this in a funcion opaque in usb_netdev */
+#ifdef MADWIFI
p54u_dbg("Detaching madwifi.\n");
ieee80211_ifdetach(&p54u->sc_ic);
p54u_dbg("Madwifi detached.\n");
+#endif
unregister_netdev(netdev);
p54u_dbg("Unregistered netdevice.\n");
--- usb_ioctl.c.orig 2004-12-21 14:52:29.000000000 +0100
+++ usb_ioctl.c 2004-12-21 14:53:07.000000000 +0100
@@ -4,6 +4,7 @@
#include "ioctl.h"
#include "prism54_usb.h"
+#include "channels.h"
/* support function to build the "change channel" packet for prism54usb */
void make_tx_control_channel(struct p54u *p54u, void *buf, unsigned int chan, unsigned int freq)
--- usb_netdev.c.orig 2004-12-21 14:50:48.000000000 +0100
+++ usb_netdev.c 2004-12-21 14:50:48.000000000 +0100
@@ -239,8 +239,8 @@
int p54u_setup_net(struct net_device *netdev)
{
- struct p54u *sc = netdev->priv;
#ifdef MADWIFI
+ struct p54u *sc = netdev->priv;
struct ieee80211com *ic = &sc->sc_ic;
#endif /* MADWIFI */
int error;
@@ -338,8 +338,10 @@
return 0;
+#ifdef MADWIFI
out:
ieee80211_ifdetach(ic);
+#endif
return error;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://prism54.org/pipermail/prism54-devel/attachments/20041221/a9838df7/attachment.pgp
More information about the Prism54-devel
mailing list