Unable to set the encryption key for my wireless nic

ree yhu tonnetit at yahoo.it
Sat Oct 14 18:46:30 UTC 2006


Hi All,
Please read here:
I have a bcmwl5 properly configured in linux but I am
unable to work with it in FreeBSD: here is the
typescript of my settings and attempts:
###########################
###########################
Script started on Sun Oct 15 03:05:39 2006
bash-2.05b# kldload ndis
bash-2.05b# kldload ./bcmwl5_sys.ko
bash-2.05b#
bash-2.05b# kldstat
Id Refs Address    Size     Name
 1   13 0xc0400000 63070c   kernel
 2    1 0xc2459000 15000    linux.ko
 5    2 0xc26cf000 b000     if_ndis.ko
 6    2 0xc26de000 13000    ndis.ko
 7    1 0xc4e82000 88000    bcmwl5_sys.ko
bash-2.05b# ifconfig -a
rl0:
flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu
1500
        options=8<VLAN_MTU>
        inet6 fe80::2c0:9fff:fee2:b3d6%rl0 prefixlen
64 scopeid 0x1
        ether 00:c0:9f:e2:b3:d6
        media: Ethernet autoselect (none)
        status: no carrier
fwe0:
flags=108802<BROADCAST,SIMPLEX,MULTICAST,NEEDSGIANT>
mtu 1500
        options=8<VLAN_MTU>
        ether 02:c0:9f:73:36:a4
        ch 1 dma -1
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu
16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
ndis0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu
1500
        ether 00:14:a5:1c:05:3e
        media: IEEE 802.11 Wireless Ethernet
autoselect
        status: no carrier
        ssid "" channel 1
        authmode OPEN privacy OFF txpowmax 100
protmode CTS
bash-2.05b# ifconfig ndis0 wepmode on wepkey
d1122334ac
bash-2.05b# ifconfig ndis0 scan
SSID            BSSID              CHAN RATE  S:N  
INT CAPS
SM-Apt10        00:04:e2:e9:0c:e8    1   54M 160:0  
100 EP   ??? ??? ??? ??? ???
bash-2.05b# dhclient ndis0M
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67
interval 5
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67
interval 5
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67
interval 11
bash-2.05b# ifconfig ndis0 wepmode on wepkey
d1122334ac
ifconfig: SIOCS80211: Invalid argument
bash-2.05b# ifconfig ndis0 wepmode on wepkey
0xd1122334ac
bash-2.05b# dhclient ndis0
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67
interval 5
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67
interval 5
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67
interval 14
bash-2.05b# ifconfig ndis0
ndis0:
flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu
1500
        inet6 fe80::214:a5ff:fe1c:53e%ndis0 prefixlen
64 scopeid 0x4
        inet 0.0.0.0 netmask 0xff000000 broadcast
255.255.255.255
        ether 00:14:a5:1c:05:3e
        media: IEEE 802.11 Wireless Ethernet
autoselect
        status: no carrier
        ssid "" channel 1
        authmode OPEN privacy ON deftxkey UNDEF
txpowmax 100 protmode CTS
bash-2.05b# ifconfig ndis0 ssid SM-Apt10 wepmode on
deftxkey d1122334ac
bash-2.05b# ifconfig ndis0
ndis0:
flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu
1500
        inet6 fe80::214:a5ff:fe1c:53e%ndis0 prefixlen
64 scopeid 0x4
        inet 0.0.0.0 netmask 0xff000000 broadcast
255.255.255.255
        ether 00:14:a5:1c:05:3e
        media: IEEE 802.11 Wireless Ethernet
autoselect
        status: no carrier
        ssid "" channel 1
        authmode OPEN privacy ON deftxkey UNDEF
txpowmax 100 protmode CTS
bash-2.05b# dhclient ndis0
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67
interval 7
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67
interval 12
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67
interval 18
bash-2.05b# ifconfig -km ndis0
ndis0:
flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu
1500
        inet6 fe80::214:a5ff:fe1c:53e%ndis0 prefixlen
64 scopeid 0x4
        inet 0.0.0.0 netmask 0xff000000 broadcast
255.255.255.255
        ether 00:14:a5:1c:05:3e
        media: IEEE 802.11 Wireless Ethernet
autoselect
        status: no carrier
        supported media:
                media OFDM/54Mbps mode autoselect
mediaopt adhoc
                media OFDM/54Mbps mode autoselect
                media OFDM/48Mbps mode autoselect
mediaopt adhoc
                media OFDM/48Mbps mode autoselect
                media OFDM/36Mbps mode autoselect
mediaopt adhoc
                media OFDM/36Mbps mode autoselect
                media OFDM/18Mbps mode autoselect
mediaopt adhoc
                media OFDM/18Mbps mode autoselect
                media OFDM/12Mbps mode autoselect
mediaopt adhoc
                media OFDM/12Mbps mode autoselect
                media OFDM/9Mbps mode autoselect
mediaopt adhoc
                media OFDM/9Mbps mode autoselect
                media OFDM/6Mbps mode autoselect
mediaopt adhoc
                media OFDM/6Mbps mode autoselect
                media DS/11Mbps mode autoselect
mediaopt adhoc
                media DS/11Mbps mode autoselect
                media DS/5.5Mbps mode autoselect
mediaopt adhoc
                media DS/5.5Mbps mode autoselect
                media DS/2Mbps mode autoselect
mediaopt adhoc
                media DS/2Mbps mode autoselect
                media DS/1Mbps mode autoselect
mediaopt adhoc
                media DS/1Mbps mode autoselect
                media OFDM/54Mbps mode 11g mediaopt
adhoc
                media OFDM/54Mbps mode 11g
                media OFDM/48Mbps mode 11g mediaopt
adhoc
                media OFDM/48Mbps mode 11g
                media OFDM/36Mbps mode 11g mediaopt
adhoc
                media OFDM/36Mbps mode 11g
                media OFDM/18Mbps mode 11g mediaopt
adhoc
                media OFDM/18Mbps mode 11g
                media OFDM/12Mbps mode 11g mediaopt
adhoc
                media OFDM/12Mbps mode 11g
                media OFDM/9Mbps mode 11g mediaopt
adhoc
                media OFDM/9Mbps mode 11g
                media OFDM/6Mbps mode 11g mediaopt
adhoc
                media OFDM/6Mbps mode 11g
                media autoselect mode 11g mediaopt
adhoc
                media autoselect mode 11g
                media DS/11Mbps mode 11b mediaopt
adhoc
                media DS/11Mbps mode 11b
                media DS/5.5Mbps mode 11b mediaopt
adhoc
                media DS/5.5Mbps mode 11b
                media DS/2Mbps mode 11b mediaopt adhoc
                media DS/2Mbps mode 11b
                media DS/1Mbps mode 11b mediaopt adhoc
                media DS/1Mbps mode 11b
                media autoselect mode 11b mediaopt
adhoc
                media autoselect mode 11b
                media autoselect mode autoselect
mediaopt adhoc
                media autoselect mode autoselect
        ssid "" channel 1
        authmode OPEN privacy ON deftxkey UNDEF
txpowmax 100 protmode CTS
bash-2.05b# ifconfig ndis0 ssid SM-Apt10 wepmode on
deftxkey "d1122334ac"
bash-2.05b# dhclient ndis0
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67
interval 7
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67
interval 8
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67
interval 16

Script done on Sun Oct 15 03:19:56 2006
###########################
###########################
and here you see the settings in linux:
###########################
###########################
# ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr
00:14:A5:1C:05:3E
          inet addr:192.168.110.100 
Bcast:192.168.110.255  Mask:255.255.255.0
          inet6 addr: fe80::214:a5ff:fe1c:53e/64
Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500 
Metric:1
          RX packets:234 errors:0 dropped:0 overruns:0
frame:0
          TX packets:281 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:86709 (84.6 Kb)  TX bytes:32434
(31.6 Kb)
          Interrupt:153 Memory:c0204000-c0206000

# iwconfig wlan0
wlan0     IEEE 802.11g  ESSID:"SM-Apt10"
          Mode:Managed  Frequency:2.412 GHz  Access
Point: 00:04:E2:E9:0C:E8
          Bit Rate:48 Mb/s   Tx-Power:25 dBm
          RTS thr:2347 B   Fragment thr:2346 B
          Encryption key:D112-2334-AC   Security
mode:restricted
          Power Management:off
          Link Quality:100/100  Signal level:-57 dBm 
Noise level:-256 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx
invalid frag:0
          Tx excessive retries:0  Invalid misc:0  
Missed beacon:0

# iwlist wlan0 key
wlan0     2 key sizes : 40, 104bits
          4 keys available :
                                                      
                                                      
                                                      
                                                      
                                                      
                                                      
                                                      
                                                      
                                                      
     [1]: D112-2334-AC (40 bits)
                [2]: off
                [3]: off
                [4]: off
          Current Transmit Key: [1]
          Security mode:restricted
          Authentication capabilities :
                WPA
                WPA2
                CIPHER TKIP
                CIPHER CCMP
          Current key_mgmt:0x0
          Current cipher_pairwise:0x0
          Current cipher_group:0x0

# iwlist wlan0 scanning
wlan0     Scan completed :
          Cell 01 - Address: 00:04:E2:E9:0C:E8
                    ESSID:"SM-Apt10"
                    Protocol:IEEE 802.11g
                    Mode:Managed
                    Frequency:2.412 GHz (Channel 1)
                    Quality:0/100  Signal level:-57
dBm  Noise level:-256 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5
Mb/s; 6 Mb/s; 9 Mb/s
                              11 Mb/s; 12 Mb/s; 18
Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:bcn_int=100
                    Extra:atim=0
#################################
#################################



__________________________________________________
Do You Yahoo!?
Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi 
http://mail.yahoo.it 


More information about the freebsd-mobile mailing list