View previous topic :: View next topic |
Author |
Message |
Peter B. n00b
Joined: 19 Mar 2004 Posts: 10
|
Posted: Sun May 09, 2004 1:21 am Post subject: |
|
|
UberLord wrote: | If you're not using the latest version of wireless-tools in portage - including ~x86 - could you try that first please.
Thanks! |
Latest version available: 27_pre22
Latest version installed: 27_pre22
I have ~x86 in make.conf and did an emerge system one week ago - so the system should be pretty up to date. |
|
Back to top |
|
|
AgenT Apprentice
Joined: 18 May 2003 Posts: 280
|
Posted: Sun May 09, 2004 1:36 am Post subject: |
|
|
UberLord wrote: | AgenT wrote: |
Found line blanked by me. But the MAC does not match the router, which is strange. Or does that Found line mean something else?
Also, not exactly sure what my NIC supports because it is being used under ndiswrapper. It is "officially" supported by ndiswrapper. This is why I would rather just hand code ip, essid, etc. just to eliminate problems with scanning (if there are any). |
No, found means that's the MAC address it's found to connect to. Your output also shows that it's not broadcasting an ESSID. Why not try turning it on - it maybe someone elses wireless that you're picking up. |
What do you mean turn on ESSID broadcasting? As I mentioned, the router's SSID broadcasting is on and has always been on. Or do you mean the NIC should broadcast as well (I was not aware that they could broadcast)?
I just noticed that the "Found" MAC is the mac of the NIC itself. I guess it found itself
Any further ideas? |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Sun May 09, 2004 1:43 am Post subject: |
|
|
AgenT wrote: | What do you mean turn on ESSID broadcasting? As I mentioned, the router's SSID broadcasting is on and has always been on. Or do you mean the NIC should broadcast as well (I was not aware that they could broadcast)?
I just noticed that the "Found" MAC is the mac of the NIC itself. I guess it found itself
Any further ideas? |
Well, the card finding itself is mighty odd. Try enabling Code: | scan_mode_wlan0="Ad-Hoc" |
and see what that does.
Also, try increasing the value of sleep_scan_wlan0 as the card may have to wait abit once it's up before it finds the AP.
Aside from that I'm all out of ideas _________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
AgenT Apprentice
Joined: 18 May 2003 Posts: 280
|
Posted: Sun May 09, 2004 2:23 am Post subject: |
|
|
UberLord wrote: | AgenT wrote: | What do you mean turn on ESSID broadcasting? As I mentioned, the router's SSID broadcasting is on and has always been on. Or do you mean the NIC should broadcast as well (I was not aware that they could broadcast)?
I just noticed that the "Found" MAC is the mac of the NIC itself. I guess it found itself
Any further ideas? |
Well, the card finding itself is mighty odd. Try enabling Code: | scan_mode_wlan0="Ad-Hoc" |
and see what that does.
Also, try increasing the value of sleep_scan_wlan0 as the card may have to wait abit once it's up before it finds the AP.
Aside from that I'm all out of ideas |
Nope, nothing Also played with the other settings.
Worthless cards... time to get a real wireless card that has a real FOSS driver. Speaking of which, are there good wireless card databases that show which are Linux/OSS friendly? |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
AgenT Apprentice
Joined: 18 May 2003 Posts: 280
|
Posted: Sun May 09, 2004 3:28 pm Post subject: |
|
|
Thanks a lot for those websites. And thank you for all of your help.
There is no need for me to spend the extra cash on a g card and the b Netgear MA311 looks promising. It seems to work with three different drivers. |
|
Back to top |
|
|
Peter B. n00b
Joined: 19 Mar 2004 Posts: 10
|
Posted: Sun May 09, 2004 3:53 pm Post subject: |
|
|
Hi Uber,
indeed I was not using the cvs madwifi driver, but the one emerge gave me: Code: | * net-wireless/madwifi-driver
Latest version available: 0.1_pre20040212 |
I rmmod ath_pci, ath_hal and wlan, unmerged madwifi-driver and did a cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/madwifi co madwifi some minutes ago. make install did its job, modprobe wlan, ath_hal and ath_pci went fine (I also checked by date of *.ko files that they are the ones just built) and so I now should have the latest version of madwifi-driver from cvs. However - didn't change the behaviour in any way - here's the complete output of iwlist ath0 scan: Code: | bash-2.05b# ifconfig ath0 up
bash-2.05b# iwlist ath0 scan
ath0 Scan completed :
Cell 01 - Address: xx:xx:xx:xx:xx:xx
Mode:Master
Encryption key:**
Quality=43/94 Signal level=-52 dBm Noise level=-95 dBm
Mode:Master
ESSID:" "
Frequency:2.437GHz (channel 6)
Bit Rate:1Mb/s
Bit Rate:2Mb/s
Bit Rate:5Mb/s
Bit Rate:6Mb/s
Bit Rate:9Mb/s
Bit Rate:11Mb/s
Bit Rate:12Mb/s
Bit Rate:18Mb/s
Bit Rate:24Mb/s
Bit Rate:36Mb/s
Bit Rate:48Mb/s
Bit Rate:54Mb/s |
As you can see, the SMC2804WBRP-G's ESSID is recognised as " " for some reason although its ESSID broadcasting is disabled. I don't know if this is due to some strange driver or wireless-tools behaviour or if the AP really sends " " - any idea how to check this?
Some other clever ideas?
Greetings, P.
--edit: I just counter-checked with the Window$ Installation on the same machine. It found the AP's ESSID as " ", too. So it isn't a specific madwifi / wireless-tools problem. Still could be the wireless card itself (although I doubt that) but since I have no other wireless card at hands, I can't check.
I'll probably be able to counter check with another wlan card this week (at least the next) and will post, if the ESSID is received as " " there, too. Then we can go for sure, that the SMC AP is sending a wrong ESSID with ESSID broadcasting disabled. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Sun May 09, 2004 5:52 pm Post subject: |
|
|
Thats a real bummer
I was curious as I use the madwifi driver and it works fine - ESSID isn't even on my list when I disable ESSID broadcasting.
Let me know if another wifi card works - if not then I guess I'll have to force MAC->ESSID translation...
EDIT: Out of curiosity, can you connect to ESSID " "?
Code: |
ifconfig ath0 up
iwconfig ath0 essid " "
iwconfig ath0 |
If it connects, there should be a MAC address reported by iwconfig. _________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
|
davecs Guru
Joined: 08 Nov 2003 Posts: 436 Location: Dagenham, GB
|
Posted: Sun May 09, 2004 6:25 pm Post subject: |
|
|
UberLord wrote: |
Now, it looks like there's a problem with your driver for your USB card. You need to get that working without error messages before trying to start the interface via net.wlan0
I suggest you ask in the Hardware forum |
So if I can get my driver sorted, what I've done should work? Maybe I should try a 2.4 kernel and see what happens... _________________ Gentoo, PCLOS-pre-81a and Windows 98SE.
Shuttle SN41G2V2
Athlon XP2500+ o/c to 3200+, 2x256Mb Geil Value RAM, FX5200.
Ntlworld cable internet via ethernet
and PC-Chips Desknote Laptop (with PCLOS-pre-81a ) |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
Peter B. n00b
Joined: 19 Mar 2004 Posts: 10
|
Posted: Mon May 10, 2004 7:28 am Post subject: |
|
|
UberLord wrote: |
EDIT: Out of curiosity, can you connect to ESSID " "?
Code: |
ifconfig ath0 up
iwconfig ath0 essid " "
iwconfig ath0 |
If it connects, there should be a MAC address reported by iwconfig. |
Simple question - simple (if annyoing) answer: no.
Greets, P. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
Peter B. n00b
Joined: 19 Mar 2004 Posts: 10
|
Posted: Mon May 10, 2004 8:28 am Post subject: |
|
|
UberLord wrote: |
Have you tried updating the firmware? I believe that 1.002 is the latest for your AP. |
one more annoying answer: Code: | Runtime Code Version:
v1.002 (Dec 11 2003 20:09:41) |
Nevertheless friendly greets
Don't bother about that AP if you feel bad with it... still to check here if it's the wifi / AP combination (but what if so? Someone else might stumble about that, too... I think you have the choice of either respecting proprietary behaviour or leave it out of the ebuild) -
take care, P. |
|
Back to top |
|
|
legokloss n00b
Joined: 20 May 2003 Posts: 14 Location: Hamar, Norway
|
Posted: Mon May 10, 2004 7:43 pm Post subject: Re: Wireless configuration and startup -The Gentoo way[EDIT] |
|
|
I installed your latest script earlier today and I must say I'm impressed where this has gone to (I belive it were your scripts in an earlier stage I have tried before (settings in /etc/conf.d/net instead of /etc/conf.d/wireless and so on).
I like the idea where I can set different ifconfig and such settings for each ESSID, but I got one problem. I set in /etc/conf.d/wireless: ifconfig_MYESSID="dhcp" and dhcpcd_MYESSID="-h myhostname". This is because I use ddns and want to update it with dhcpcd. I get a IP address, but the hostname is not set up. (ping myhostname gives me unknown host). I have also tried and set it in /etc/conf.d/net, but dosn't work there either after installing your script and I know it worked before. What can this be?
Keep up the good work!
[EDIT]
To fast there. The script was not the problem. Don't know what was wrong. Worked after a restart. Thanks for a good script! _________________ Martin Holt Juliussen
Sleep, she is for the weak |
|
Back to top |
|
|
tranzdanz n00b
Joined: 15 Apr 2004 Posts: 3
|
Posted: Mon May 10, 2004 7:52 pm Post subject: Installed wireless-config-0.4.1 but something still missing. |
|
|
Hi everyone,
I have a D-Link DWL-650 v.M1 (Realtek chipset I think) using ndiswrapper under Kernel 2.6..3 I can see wlan0 under iwconfig and ifconfig wlan0 and there is some activity on the card but I cannot connect to my wireless router. I get no SSID even though it is being brodcasted by the router.
I just need some help getting to the last step to get a link up and DHCP going.
iwconfig results:
wlan0 IEEE 802.11b ESSID:""
Mode:Auto Frequesncy:2.412Ghz Access Point: FF:FF:FF:FF:FF:FF
Bit Rate:11Mb/s Tx-Power:20 dBm Sensitivity=0/3
RTS thr:2432 B Fragment thr: 2432 B
Encryption key:off
Power Management: off
Link Quality:100/100 Signal level:-95 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
Thanks in advance |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
tranzdanz n00b
Joined: 15 Apr 2004 Posts: 3
|
Posted: Mon May 10, 2004 8:45 pm Post subject: |
|
|
When I typed
I got nothing as you can see...
So I did and ifconfig wlan0 just to show what I do have running...
Here are my results.
Code: | bash-2.05b# ifconfig wlan0 up
bash-2.05b# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:05:5D:98:54:23
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Memory:11000000-11000024
bash-2.05b# iwlist wlan0 scan
wlan0 No scan results
bash-2.05b#
|
Thanks for the prompt reply! |
|
Back to top |
|
|
AccordionGuy n00b
Joined: 16 Mar 2004 Posts: 3
|
Posted: Mon May 10, 2004 11:33 pm Post subject: Association test changes |
|
|
This post is out of date: there is a better version on page 29
Here is a revised version of the test found in the wireless_wait_for_association() function of wireless.sh
Code: |
local wireless_mac=`${IWCONFIG} ${IFACE} 2>/dev/null | gawk '/\<..:..:..:..:..:..\>/ {print}' | sed 's/^.*\<\(..:..:..:..:..:..\)\>.*$/\1/g'`
local wireless_quality=`${IWCONFIG} ${IFACE} | awk '/Link Quality:/{print}' | sed 's/^.*Link Quality:\(.*\)\\/100.*$/\1/g'`
if [ "${wireless_mac}" != "FF:FF:FF:FF:FF:FF" ] \
&& [ "${wireless_mac}" != "44:44:44:44:44:44" ] \
&& [ "${wireless_mac}" != "00:00:00:00:00:00" ] \
&& [ "${wireless_quality}" != "0" ]; then
return 0
fi
|
I revised this because with the ipw2100 the original version of the test doesn't work. The original version assumes the mac address will get set to a bogus number if the association fails. The ipw2100 driver doesn't reset this mac number from the last association so if it ever associated with a valid ap then that number stays until the next association. This is probably a bug in the driver, but it also seems like a missing feature of iwconfig. iwconfig should give an easy way to see if an association is good.
I found I could use the link quality, so the revised version has checks this value. I'm not sure the new sed pattern will work with every adapter. It assumes the link quality is always out of 100. Also this assumes that every adapter has a link quality.
Last edited by AccordionGuy on Wed May 12, 2004 8:09 pm; edited 2 times in total |
|
Back to top |
|
|
wabben n00b
Joined: 05 Apr 2004 Posts: 17
|
Posted: Tue May 11, 2004 4:24 am Post subject: |
|
|
I am having an odd problem with my wireless card. I'm using ndiwrapper 0.7 and uberlord's latest ebuild. On boot everything loads fine. DHCP assigns an IP address. Despite having the IP address and connecting to the access point, I am unable to connect to any websites.
I'm able to connect to the access point in windows XP and thereby connect to the internet okay, so the card is at least working. I just can't figure out why I can connect to the access point in Gentoo but not the internet.
Any suggestions?
I |
|
Back to top |
|
|
wabben n00b
Joined: 05 Apr 2004 Posts: 17
|
Posted: Tue May 11, 2004 5:05 am Post subject: |
|
|
I figured it out -sort of. It seems that having shorewall running keeps me from connecting to the internet. If I stop it, then I can access the internet. The problem is now that I would like to have a firewall up while I am online. Any ideas on how to configure it so that I am not having this conflict? |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
kosine n00b
Joined: 02 Oct 2003 Posts: 57
|
Posted: Tue May 11, 2004 4:34 pm Post subject: How to switch between wireless and ethernet card? |
|
|
I configed the wireless according to this post, it runs well.
but when in office I should use normal ethernet connection
I used
Code: |
/etc/init.d/net.eth1 stop // wireless
/etc/init.d/net.eth0 start //1000M ethernet
|
but doesn't work.
so I used
Code: |
rc-update delete net.eth1
rc-update add net.eth0 default
|
still doesn't work
so I restart eth0
/etc/init.d/net.eth0 restart //1000M ethernet
and tells me that wireless extensions not found for eth0 ??
but my wireless is eth1
and also here is an error
/sbin/runscript.sh: line 76: (( i -lt 0: syntax error in expression (error token is "0")
How to switch between them ?
or use one in office another at home ?
Thank you! |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Tue May 11, 2004 4:54 pm Post subject: Re: How to switch between wireless and ethernet card? |
|
|
kosine wrote: | I configed the wireless according to this post, it runs well.
but when in office I should use normal ethernet connection
I used
Code: |
/etc/init.d/net.eth1 stop // wireless
/etc/init.d/net.eth0 start //1000M ethernet
|
but doesn't work.
so I used
Code: |
rc-update delete net.eth1
rc-update add net.eth0 default
|
still doesn't work
|
You need ifplugd instead of having net.eth0 in the default runlevel
You may or may not need to configure it for net.eth1 depending on how your wireless is layed out.
Quote: |
/sbin/runscript.sh: line 76: (( i -lt 0: syntax error in expression (error token is "0")
|
Thats an error in the baselayout you have.
Code: |
emerge sync
emerge baselayout
|
should fix that _________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
|
|