Re: BCM4309 with bcm43xx-mac80211 and WPA

2007-06-22 Thread Ioannis Nousias
Larry Finger wrote:
 Ioannis Nousias wrote:
 iwconfig:
 eth1  IEEE 802.11b/g  ESSID:My ESSID here  Nickname:Broadcom 
 4306
  Mode:Managed  Frequency=2.432 GHz  Access Point: my 
 router's MAC here  Bit Rate=24 Mb/s   Tx-Power=14 
 dBm   RTS thr:off   Fragment thr:off

 Your interface has not authenticated. If it had, there would be an 
 encryption key here.

  Link Quality=66/100  Signal level=-61 dBm  Noise level=-66 dBm

 This is a low signal/noise. Attached is a patch that will cut the rate 
 from 24M to 11M to see if that helps get you connected.

  Rx invalid nwid:0  Rx invalid crypt:1  Rx invalid frag:0
  Tx excessive retries:0  Invalid misc:0   Missed beacon:0


 I'm not sure. Is there a log? nm-tool reports this:

 In the panel kicker applet used with NM on KDE, I get a progression 
 bar. I guess it isn't universal.


 But, I think it reloads itself. In fact I can see it in dmesg. Is it 
 possible that NM causes it to reload the module ?

 I don't think NM is doing it by itself. At least it doesn't do that on 
 my system. When I unload the module, I have to manually reload it, and 
 then reconnect.

 Larry


Thanks, but no luck. I even tried with 1Mbps and still can't connect.

with 11Mbps:
 Link Quality=58/100  Signal level=-64 dBm  Noise level=-67 dBm

with 1Mbps:
 Link Quality=68/100  Signal level=-59 dBm  Noise level=-65 dBm


-Ioannis



PS: I can see wpa_supplicants being invoked by NM, so that part should 
be ok.

root  5202  0.0  0.1   4948  1388 ?S08:46   0:00 
/usr/sbin/wpa_supplicant -g /var/run/wpa_supplicant-global
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: BCM4309 with bcm43xx-mac80211 and WPA

2007-06-22 Thread Larry Finger
Ioannis Nousias wrote:
 
 
 
 PS: I can see wpa_supplicants being invoked by NM, so that part should 
 be ok.
 
 root  5202  0.0  0.1   4948  1388 ?S08:46   0:00 
 /usr/sbin/wpa_supplicant -g /var/run/wpa_supplicant-global

The next step is to see what wpa_supplicant has to say. Prepare 
/etc/wpa_supplicant.conf with the 
following contents:

ctrl_interface=/var/run/wpa_supplicant
network={
   scan_ssid=1
   ssid=your ssid
   key_mgmt=WPA-PSK
   psk=your psk secret
}

As root, kill the existing wpa_supplicant process and issue the following 
command:

'wpa_supplicant -ieth1 -c/etc/wpa_supplicant.conf -ddd'

Please send me the output that results. There shouldn't be anything sensitive, 
but if you are 
worried, send it to me privately.

Larry

___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: BCM4309 with bcm43xx-mac80211 and WPA

2007-06-21 Thread Ioannis Nousias
Larry Finger wrote:

 bcm43xx: TODO: Incomplete code in keymac_write() at
 /home/s0238762/Desktop/bcm43xx-softmac-sa/bcm43xx/bcm43xx_m
 ain.c:1146
 ...
 bcm43xx: Keys cleared
 bcm43xx: Selected 802.11 core (phytype 2)
 ADDRCONF(NETDEV_UP): eth1: link is not ready


 I'm sitting 5meters apart from the router. The signal indication in
 NetworkManager is nearly full strength.

 at least we are getting there. Thanks

 The fact that you are seeing signal in NetworkManager means that 
 scanning is working. Please send the output of the ifconfig and 
 iwconfig commands once NM has tried to connect.
during the time NM tries to connect


ifconfig:
eth1  Link encap:Ethernet  HWaddr my MAC here
  inet6 addr: fe80::290:4bff:fe71:e8f5/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:8 errors:0 dropped:1 overruns:0 frame:0
  TX packets:559 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:676 (676.0 b)  TX bytes:28690 (28.0 KiB)
  Interrupt:11 Base address:0x8000



iwconfig:
eth1  IEEE 802.11b/g  ESSID:My ESSID here  Nickname:Broadcom 4306
  Mode:Managed  Frequency=2.432 GHz  Access Point: my router's 
MAC here 
  Bit Rate=24 Mb/s   Tx-Power=14 dBm  
  RTS thr:off   Fragment thr:off
  Link Quality=66/100  Signal level=-61 dBm  Noise level=-66 dBm
  Rx invalid nwid:0  Rx invalid crypt:1  Rx invalid frag:0
  Tx excessive retries:0  Invalid misc:0   Missed beacon:0


 What percentage does NM reach before it stops trying? 
I'm not sure. Is there a log? nm-tool reports this:

NetworkManager Tool

State: connecting

- Device: eth1 

  NM Path:   /org/freedesktop/NetworkManager/Devices/eth1
  Type:  802.11 Wireless
  Driver:bcm43xx
  Active:yes
  HW Address:my MAC

  Capabilities:
Supported:   yes
Speed:   24 Mb/s

  Wireless Settings
Scanning:yes
WEP Encryption:  yes
WPA Encryption:  yes
WPA2 Encryption: yes

  Wireless Networks (* = Current Network)
some neighbour's ESSID:Infrastructure Mode, Freq 0.000 MHz, 
Rate 62 Mb/s, Strength 77%, Encrypted (WEP)
*My ESSID:  Infrastructure Mode, Freq 0.000 MHz, Rate 62 Mb/s, 
Strength 89%, Encrypted (WPA)
some other neighbour ESSID: Infrastructure Mode, Freq 0.000 MHz, 
Rate 62 Mb/s, Strength 74%

  IP Settings:
IP Address:  0.0.0.0
Subnet Mask: 0.0.0.0
Broadcast:   0.0.0.0
Gateway: 0.0.0.0
Primary DNS: 0.0.0.0
Secondary DNS:   0.0.0.0

 Are you using any encryption?
WPA-PSK with TKIP

 PS2: once loaded the module can not be removed. rmmod (or modprobe -r)
 do nothing on it.

 I have not seen this problem before. Are there any messages in the 
 logs or on the console?

$ sudo /sbin/modprobe -rv bcm43xx
rmmod /lib/modules/2.6.21-1.3228.fc7/extra/bcm43xx/bcm43xx.ko
rmmod 
/lib/modules/2.6.21-1.3228.fc7/extra/ieee80211/softmac/ieee80211softmac.ko
rmmod /lib/modules/2.6.21-1.3228.fc7/extra/ieee80211/ieee80211.ko

$ /sbin/lsmod | grep bcm43
bcm43xx   437384  0
ieee80211softmac   39168  1 bcm43xx
ieee80211  38344  2 bcm43xx,ieee80211softmac

But, I think it reloads itself. In fact I can see it in dmesg. Is it 
possible that NM causes it to reload the module ?


thanks for you help

-Ioannis

___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: BCM4309 with bcm43xx-mac80211 and WPA

2007-06-21 Thread Larry Finger

Ioannis Nousias wrote:

iwconfig:
eth1  IEEE 802.11b/g  ESSID:My ESSID here  Nickname:Broadcom 4306
 Mode:Managed  Frequency=2.432 GHz  Access Point: my router's 
MAC here  Bit Rate=24 Mb/s   Tx-Power=14 dBm   RTS 
thr:off   Fragment thr:off


Your interface has not authenticated. If it had, there would be an encryption 
key here.


 Link Quality=66/100  Signal level=-61 dBm  Noise level=-66 dBm


This is a low signal/noise. Attached is a patch that will cut the rate from 24M to 11M to see if 
that helps get you connected.



 Rx invalid nwid:0  Rx invalid crypt:1  Rx invalid frag:0
 Tx excessive retries:0  Invalid misc:0   Missed beacon:0


I'm not sure. Is there a log? nm-tool reports this:


In the panel kicker applet used with NM on KDE, I get a progression bar. I 
guess it isn't universal.



But, I think it reloads itself. In fact I can see it in dmesg. Is it 
possible that NM causes it to reload the module ?


I don't think NM is doing it by itself. At least it doesn't do that on my system. When I unload the 
module, I have to manually reload it, and then reconnect.


Larry

Index: bcm43xx-softmac-sa/ieee80211/softmac/ieee80211softmac_module.c
===
--- bcm43xx-softmac-sa.orig/ieee80211/softmac/ieee80211softmac_module.c
+++ bcm43xx-softmac-sa/ieee80211/softmac/ieee80211softmac_module.c
@@ -266,7 +266,7 @@ void ieee80211softmac_init_bss(struct ie
 * The txrate machine will lower it, if it is too high.
 */
if (ieee-modulation  IEEE80211_OFDM_MODULATION)
-   txrates-user_rate = IEEE80211_OFDM_RATE_24MB;
+   txrates-user_rate = IEEE80211_CCK_RATE_11MB;
else
txrates-user_rate = IEEE80211_CCK_RATE_11MB;
 
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: BCM4309 with bcm43xx-mac80211 and WPA

2007-06-20 Thread Larry Finger
Ioannis Nousias wrote:
 hi,
 
 does bcm43xx-mac80211 support WPA for the BCM4309 chipset ? It seems 
 that the driver detects and initialised the card, but I can't connect to 
 my router. I'm using NetworkManager and it does see my router, but 
 doesn't connect to it. Not to mention that after a while the driver 
 causes a system freeze. I'm using WPA PSK-TKIP

Yes, bcm43xx-mac80211 supports WPA. I don't know about the system freeze, but 
most problems in 
associating and authenticating with mac80211 are due to low signal strengths. 
The driver is 
improving, but still has problems.

 I've also tried with the bcm43xx (and a V3 firmware), but that doesn't 
 seem to recognise the card at all. 'dmesg' reports only this:
 ieee80211_crypt: unregistered algorithm 'NULL'
 ieee80211_crypt: registered algorithm 'NULL'
 ieee80211: 802.11 data/management/control stack, git-1.1.13
 ieee80211: Copyright (C) 2004-2005 Intel Corporation 
 [EMAIL PROTECTED]

I do not think that you selected IEEE802.11i TKIP encryption under the 
Generic IEEE802.11 stack 
when you configured your system. The message here is ieee80211_crypt: 
registered algorithm 'TKIP'. 
I am assuming that wpa_supplicant is available and started by NetworkManager. 
That is what happens 
on my system.

Larry
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: BCM4309 with bcm43xx-mac80211 and WPA

2007-06-20 Thread Ioannis Nousias

Larry Finger wrote:
 Ioannis Nousias wrote:
 hi,

 does bcm43xx-mac80211 support WPA for the BCM4309 chipset ? It seems 
 that the driver detects and initialised the card, but I can't connect 
 to my router. I'm using NetworkManager and it does see my router, but 
 doesn't connect to it. Not to mention that after a while the driver 
 causes a system freeze. I'm using WPA PSK-TKIP

 Yes, bcm43xx-mac80211 supports WPA. I don't know about the system 
 freeze, but most problems in associating and authenticating with 
 mac80211 are due to low signal strengths. The driver is improving, but 
 still has problems.
ok I see. I do get transmission errors (PHY).

 I've also tried with the bcm43xx (and a V3 firmware), but that 
 doesn't seem to recognise the card at all. 'dmesg' reports only this:
 ieee80211_crypt: unregistered algorithm 'NULL'
 ieee80211_crypt: registered algorithm 'NULL'
 ieee80211: 802.11 data/management/control stack, git-1.1.13
 ieee80211: Copyright (C) 2004-2005 Intel Corporation 
 [EMAIL PROTECTED]

 I do not think that you selected IEEE802.11i TKIP encryption under 
 the Generic IEEE802.11 stack when you configured your system. The 
 message here is ieee80211_crypt: registered algorithm 'TKIP'. I am 
 assuming that wpa_supplicant is available and started by 
 NetworkManager. That is what happens on my system.

 Larry

in the bcm43xx case, NetworkManager doesn't detect a wireless card at 
all. Its menu shows only 'Wired Network'. As I said, the card doesn't 
seem to be recognised.

I was thinking to compile the latest version, but if I'm not mistaken, 
this: 
'git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-dev.git' 
is the entire kernel source. Can I compile  somehow the bcm43xx or 
bcm43xx-mac80211 only for my current kernel ?

thanks



___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: BCM4309 with bcm43xx-mac80211 and WPA

2007-06-20 Thread Larry Finger
Ioannis Nousias wrote:
 
 in the bcm43xx case, NetworkManager doesn't detect a wireless card at 
 all. Its menu shows only 'Wired Network'. As I said, the card doesn't 
 seem to be recognised.

What is the result of the command 'dmesg | grep bcm43xx'?

 I was thinking to compile the latest version, but if I'm not mistaken, 
 this: 
 'git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-dev.git' 
 is the entire kernel source. Can I compile  somehow the bcm43xx or 
 bcm43xx-mac80211 only for my current kernel ?

Yes, that is the complete source. What is your current kernel? Do you have 
kernel sources on your 
machine?

Larry
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: BCM4309 with bcm43xx-mac80211 and WPA

2007-06-20 Thread Ioannis Nousias
Larry Finger wrote:
 Ioannis Nousias wrote:

 in the bcm43xx case, NetworkManager doesn't detect a wireless card at 
 all. Its menu shows only 'Wired Network'. As I said, the card doesn't 
 seem to be recognised.

 What is the result of the command 'dmesg | grep bcm43xx'?

bcm43xx driver

nothing else


 I was thinking to compile the latest version, but if I'm not 
 mistaken, this: 
 'git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-dev.git' 
 is the entire kernel source. Can I compile  somehow the bcm43xx or 
 bcm43xx-mac80211 only for my current kernel ?

 Yes, that is the complete source. What is your current kernel? Do you 
 have kernel sources on your machine?

 Larry
I'm using 2.6.21-1.3228.fc7 (that's Fedora 7) and I only heave the 
development package for my kernel, which is not a complete kernel 
source, but is enough to compile some kernel modules against it (I've 
tried with uvc-linux for instance)




___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev