Re: CFT: 802.11 vap code

From: Ben Kaduk <minimarmot_at_gmail.com>
Date: Fri, 25 Apr 2008 03:01:29 +0000
Hi Sam,

On 4/13/08, Sam Leffler <sam_at_errno.com> wrote:
> A patch to integrate my multi-bss (aka vap) support for wireless can be
>  found here:
>
>  http://www.freebsd.org/~sam/vap-2008051300.sh.gz
>
[sip]
>  Note there are a few new drivers included: iwn (Intel 4965), bwi
>  (Broadcom 43xx), and mwl (Marvell 88W8363).  The iwn driver is
>  unfinished; it should support 802.11n but progress has been slow
>  due to poor vendor involvement.  The bwi driver is experimental and
>  folks are encouraged to help sephe get it into shape for commit (it
>  currently is not ready CVS).  mwl is provided as an example of a

Sorry to jump in so late, but I just got a chance to compile this a couple
days ago.

Is this vap code the same one that was committed?  Something seems
to have confused my wireless card a great deal, possibly in the initialization
steps.  I have a broadcom chip that will hopefully eventually be supported
by bwi, but I have been using ndis otherwise.
With a recompiled ndisulator driver, ifconfig up-ing the interface causes
the machine to panic; a vanilla ifconfig does not, but clearly the driver
is confused.

bwi attaches successfully, but complains about antenna gain [1]; not
sure if this is why it doesn't work.

Before I start debugging bwi, though I would like to get a working
internet connection again.

This is what the odd ifconfig output is:
prolepsis# ifconfig ndis0
ndis0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
        ether 00:90:4b:2d:46:ce
        maclabel ?biba,?lomac,?mls,?sebsd
ifconfig: ndis0: no media types?
        vlan: 0 parent interface: <none>
        ssid 0x0408030000003a6920c0e0480608a7d2040844e2bfbf62e2bfbf78e2bfbf6fe3
channel 0 (0 Mhz) bssid 04:08:03:00:00:00
        stationname
0x0408030000003a6920c0e0480608a7d2040844e2bfbf62e2bfbf78e2bfbf6fe3
        authmode NONE privacy OFF deftxkey 1 txpower 0 rtsthreshold 0
        fragthreshold 0 bmiss 0 ucastrate 0 mcastrate 0 mgmtrate 0 maxretry 0
        roaming DEVICE bintval 0
        syncpeer: 0.0.0.0 maxupd: 0
        laggproto none laggdev ndis0


I have a dump of the panic when I ifconfig ndis0 up, if you want
me to poke around at it. The relevant line may be:
#10 0xc4570960 in ndis_setstate_80211 (sc=0xc45ad000)
    at /usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis.c:2205

Thanks, and sorry if this has already been fixed -- it's hard to csup without
a working network connection.

-Ben Kaduk


[1]
bwi0: <Broadcom BCM4309 802.11 Wireless Lan> mem 0xfaff6000-0xfaff7fff
irq 9 at device 3.0 on pci2
bwi0: Reserved 0x2000 bytes for rid 0x10 type 3 at 0xfaff6000
bwi0: [MPSAFE]
bwi0: [ITHREAD]
bwi0: BBP: id 0x4306, rev 0x2, pkg 0
bwi0: MAC: rev 4
bwi0: MAC: rev 4
bwi0: PHY: type 2, rev 1, ver 1
bwi0: RF: manu 0x17f, type 0x2050, rev 2
bwi0: invalid antenna gain in sprom
bwi0: PHY: type 0, rev 2, ver 1
bwi0: RF: manu 0x17f, type 0x2060, rev 1
bwi0: invalid antenna gain in sprom
bwi0: WARNING: using obsoleted if_watchdog interface
Received on Fri Apr 25 2008 - 01:26:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:30 UTC