Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Apr 2004 16:25:08 +0300
From:      Anton Alin-Adrian <aanton@reversedhell.net>
To:        freebsd-hackers@freebsd.org
Subject:   wireless usb atmel driver
Message-ID:  <406D69B4.6050601@reversedhell.net>

next in thread | raw e-mail | index | archive | help
Hi folks!

I am killing myself trying to compile http://www.vitsch.net/bsd/atuwi/ 
driver on 5.2.1-RELEASE.

The driver is written for 5.1. I also received working sources from the 
author, for 5.2.1-RELEASE but they don't compile.

I would really appreciate any hints.

I want to ask you if there is any difference between 
<net/if_ieee80211.h> and <dev/owi/if_ieee80211.h>, because I had to 
modify the source and use the later, so I wonder if this could be 
affecting the compilation.

Also, after fixing the include I get stuck at this point:

In file included from /usr/src/sys/dev/usb/if_atuwi.c:82:
@/dev/usb/if_atuwireg.h:275: warning: declaration does not declare anything

Where one can easely look and see that line 275 is:
---cut---
         SLIST_HEAD(atuwi_list_head, atuwi_chain);
---cut---

That is part of the following context:
---cut---
struct atuwi_chain {
         struct atuwi_softc      *atuwi_sc;
         usbd_xfer_handle        atuwi_xfer;
         char                    *atuwi_buf;
         struct mbuf             *atuwi_mbuf;
         u_int8_t                atuwi_idx;
         u_int16_t               atuwi_length;
#ifdef ATUWI_LAZY_TX_NETISR
         u_int8_t                atuwi_not_freed;
#endif /* ATUWI_LAZY_TX_NETISR */
         SLIST_ENTRY(atuwi_chain)        atuwi_list;
};


struct atuwi_cdata {
         struct atuwi_chain      atuwi_tx_chain[ATUWI_TX_LIST_CNT];
         struct atuwi_chain      atuwi_rx_chain[ATUWI_RX_LIST_CNT];
         struct atuwi_chain      atuwi_mgmt_chain[ATUWI_MGMT_LIST_CNT];


         SLIST_HEAD(atuwi_list_head, atuwi_chain); /* <-- HERE */
         struct atuwi_list_head  atuwi_rx_free;
         struct atuwi_list_head  atuwi_tx_free;
         struct atuwi_list_head  atuwi_mgmt_free;


         u_int8_t                atuwi_tx_inuse;
         u_int8_t                atuwi_tx_last_idx;
};
---cut---

The complete error barking:
---cut---
Warning: Object directory not changed from original 
/usr/src/sys/modules/atuwi
cc -O -pipe -mcpu=pentiumpro  -D_KERNEL -Wall -Wredundant-decls 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 
-DKLD_MODULE -nostdinc -I-   -I. -I@ -I@/../include -finline-limit=15000 
-fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2 
-ffreestanding -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline 
-Wcast-qual  -fformat-extensions -std=c99 -c 
/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c
In file included from /usr/src/sys/dev/usb/if_atuwi.c:82:
@/dev/usb/if_atuwireg.h:275: warning: declaration does not declare anything
/usr/src/sys/dev/usb/if_atuwi.c: In function `atuwi_attach':
/usr/src/sys/dev/usb/if_atuwi.c:2021: error: invalid application of 
`sizeof' to an incomplete type
/usr/src/sys/dev/usb/if_atuwi.c: In function `atuwi_handle_mgmt_packet':
/usr/src/sys/dev/usb/if_atuwi.c:2392: error: 
`IEEE80211_CAPINFO_SHORT_PREAMBLE' undeclared (first use in this function)
/usr/src/sys/dev/usb/if_atuwi.c:2392: error: (Each undeclared identifier 
is reported only once
/usr/src/sys/dev/usb/if_atuwi.c:2392: error: for each function it 
appears in.)
*** Error code 1

Stop in /usr/src/sys/modules/atuwi.
---cut---

I tried replacing line 275 with:
---cut---
         SLIST_HEAD(atuwi_list_head, atuwi_chain)    atuwi_list;
---cut---

And the error output from the compilation attempt becomes:

---cut---
Warning: Object directory not changed from original 
/usr/src/sys/modules/atuwi
cc -O -pipe -mcpu=pentiumpro  -D_KERNEL -Wall -Wredundant-decls 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 
-DKLD_MODULE -nostdinc -I-   -I. -I@ -I@/../include -finline-limit=15000 
-fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2 
-ffreestanding -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline 
-Wcast-qual  -fformat-extensions -std=c99 -c 
/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c
/usr/src/sys/dev/usb/if_atuwi.c: In function `atuwi_attach':
/usr/src/sys/dev/usb/if_atuwi.c:2021: error: invalid application of 
`sizeof' to an incomplete type
/usr/src/sys/dev/usb/if_atuwi.c: In function `atuwi_handle_mgmt_packet':
/usr/src/sys/dev/usb/if_atuwi.c:2392: error: 
`IEEE80211_CAPINFO_SHORT_PREAMBLE' undeclared (first use in this function)
/usr/src/sys/dev/usb/if_atuwi.c:2392: error: (Each undeclared identifier 
is reported only once
/usr/src/sys/dev/usb/if_atuwi.c:2392: error: for each function it 
appears in.)
*** Error code 1

Stop in /usr/src/sys/modules/atuwi.
---cut---

So no more error on line 275 from if_atuwireg.h, but I don't know if 
that is the correct fix, and I don't know why it is still not compiling 
(and if those 2 incompatibilities are related or not).

If anyone is kind enough to share me a hand of help, it is heavely 
appreciated.

Thanks!

Best Regards,
-- 
Alin-Adrian Anton
Reversed Hell Networks
GPG keyID 0x1E2FFF2E (2963 0C11 1AF1 96F6 0030 6EE9 D323 639D 1E2F FF2E)
gpg --keyserver pgp.mit.edu --recv-keys 1E2FFF2E



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?406D69B4.6050601>