Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wireless configuration and startup - The Gentoo way
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 53, 54, 55 ... 57, 58, 59  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
TiE10
n00b
n00b


Joined: 23 Jun 2004
Posts: 59
Location: NA

PostPosted: Tue Aug 31, 2004 9:45 am    Post subject: Reply with quote

ah. thx, everythign is working fine now. one more question though.. anyone know how I would go about getting a scanning patch for my kernel that would work for me?
thx again, and your script is great
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Aug 31, 2004 9:45 am    Post subject: Re: where is ath0? Reply with quote

BloodyNewbie wrote:

First question: ath_hal, ath_pci, wlan ... you talk of them constantly as modules, why that? can't I integrate them in my kernel with "y" instead of "m" ?


You can use either really.
I prefer to load everything into my kernel directly as my hardware is fairy static.

Third party kernel modules (such as the madwifi driver) are normally built as modules as integrating the source into your kernel tree and rebuilding the kernel is normally harder than having them as seperate modules.

However, they are still "modules" or "drivers" whether they are built directly into the kernel or not.

Quote:

And there my problem begins:
Code:
iwconfig ath0
"no such device"

I wanted ath0 as my wireless device, but it's not that it has no wireless extensions(there CONFIG_NET_WIRELESS set to "y" in the kernel config would be the solution afaik), no, it doesn't even exist!
But I do have it, made with:
Code:
ln -s net.eth0 net.ath0



Aha!
Have you emerged the madwifi driver? You need the madwifi driver to get your device to work - it's not included in any kernel tree atm...
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Aug 31, 2004 9:48 am    Post subject: Reply with quote

TiE10 wrote:
ah. thx, everythign is working fine now. one more question though.. anyone know how I would go about getting a scanning patch for my kernel that would work for me?
thx again, and your script is great


http://www.tzi.de/~plasmahh/orinoco.html

I'm not sure that it works on the 2.6.8 kernels though ...
I'm sure it does work on 2.6.3 kernel as I used to have an orinoco card at this time - but not anymore.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Aug 31, 2004 9:50 am    Post subject: Reply with quote

joejag wrote:
Great scripts, though the server is currently down.

Is there a mirror anywhere? I don't mind hosting them on my domain as a mirror as these are vital to anyone trying to get wireless working on gentoo.

Could someone else please upload the tar.gz please.

Thanks,
Joe.


Sorry - I'm currently moving server.
Now I just need to get my ADSL line working at my new home :)

Temp mirror
http://www.rsm.demon.co.uk/wireless-config-0.5.5.ebuild
http://www.rsm.demon.co.uk/wireless-config-0.5.5.tar.bz2
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Aug 31, 2004 9:54 am    Post subject: Reply with quote

joejag wrote:
Yeah, I have the ebuild from my other computer but not the tar.gz. Is there a reason why these files and ebuild aren't part of the main portage tree? As far as I can tell they are critical for wi-fi and having the files on just one homepage is madness!


It's not in portage as my ebuild really sucks (the ebuild, not the wireless script ;) )

However, my wireless script will be in portage in another form soon - I'm working with some Gentoo guys on this :)

Quote:

Also I just noticed my new WG311 card is being recongised as a:

Code:
0000:02:08.0 Network controller: Texas Instruments ACX 111 54Mbps Wireless Interface


Does this still work with the Prisim54 driver? I've seen a few posts that say it does/doesn't


No, you need the acx100 driver.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Aug 31, 2004 10:01 am    Post subject: Re: Won't switch ESSIDs Reply with quote

mdognrdog wrote:

Am I mistaken in thinking that every time I run /etc/init.d/net.ath0, the script should try to run through my list of APs in sequence until it finds one?


Set the preferred_aps variable in /etc/conf.d/wireless to define which order you should connect in

Don't set essit_eth0="" - comment it out.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
mdognrdog
n00b
n00b


Joined: 22 Mar 2004
Posts: 8

PostPosted: Tue Aug 31, 2004 4:09 pm    Post subject: Eureka! Reply with quote

Now I think I get it :idea: ; you get a choice between the "preferred_aps" mode, and the "hardwired ESSID" mode. Oh boy, I can't wait to head in to school and test. :D
_________________
I love gentoo--I just wish it would stop hurting my feelings.
Back to top
View user's profile Send private message
mdognrdog
n00b
n00b


Joined: 22 Mar 2004
Posts: 8

PostPosted: Tue Aug 31, 2004 4:14 pm    Post subject: Oh, hey, another thing... Reply with quote

This isn't really a wireless question, but you've put a lot of thought into this mult-homing wireless problem:

Is it possible to get the networking init script to run automatically when the computer wakes up from a suspend? It would be nice, though hardly essential, to have my computer look around for an AP every time I open the lid.
_________________
I love gentoo--I just wish it would stop hurting my feelings.
Back to top
View user's profile Send private message
snekiepete
Guru
Guru


Joined: 07 May 2003
Posts: 306
Location: WISCONSIN

PostPosted: Tue Aug 31, 2004 4:36 pm    Post subject: Reply with quote

UberLord wrote:
snekiepete wrote:
Sorry if this has been covered in this thread, but how do I get rid of the "no such device" errors when I boot with the card not plugged in. pcmcia does not start my card automatically so I have net.eth1 start right after pcmcia. I used to boot with out this message, but after a new install it started this. I am using the prism54 drivers and the card works great, it's just an ugly boot.


I also have a Prism54 pcmcia card and have the same issue. I would guess it's either a hotplug or pcmcia-cs problem.

One solution would be to use a bootsplash package ;)



Ok thanks Uberlord, great stuff by the way!!!!
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Aug 31, 2004 4:38 pm    Post subject: Reply with quote

snekiepete wrote:
UberLord wrote:
snekiepete wrote:
Sorry if this has been covered in this thread, but how do I get rid of the "no such device" errors when I boot with the card not plugged in. pcmcia does not start my card automatically so I have net.eth1 start right after pcmcia. I used to boot with out this message, but after a new install it started this. I am using the prism54 drivers and the card works great, it's just an ugly boot.


I also have a Prism54 pcmcia card and have the same issue. I would guess it's either a hotplug or pcmcia-cs problem.

One solution would be to use a bootsplash package ;)



Ok thanks Uberlord, great stuff by the way!!!!


The reason why I said that is that my previous pcmcia card (prism II based) didn't have this problem - hence it's not a problem with my wireless stuff.

Just in case I wasn't clear ....
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Aug 31, 2004 4:43 pm    Post subject: Re: Oh, hey, another thing... Reply with quote

mdognrdog wrote:
This isn't really a wireless question, but you've put a lot of thought into this mult-homing wireless problem:

Is it possible to get the networking init script to run automatically when the computer wakes up from a suspend? It would be nice, though hardly essential, to have my computer look around for an AP every time I open the lid.


There are tools todo this job for you - ifplugd may work and it's in portage. waproamd can also do this (it's by the same author as ifplugd) but it has it's own wireless setup making mine redundant and it's no way near as flexible as mine.

/me shrugs

I do have a small program though that monitors link quality and restarts the interface if it drops to zero. I haven't touched the source in ages (more pressing matters) and it probably has bugs, but if you're interested I can send you the source - you'll have to compile it yourself though. However, I don't have the time right now to support it.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
dbasinge
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2002
Posts: 86
Location: Salt Lake City, UT

PostPosted: Tue Aug 31, 2004 4:43 pm    Post subject: Reply with quote

ToddWest wrote:
Ive tried to fix this on my own but I just cant figure out whats going on. I installed ndiswrapper with my IPW2200 and I can start it perfectly on my own:

Have you tried the native ipw2200 driver, work great for me.

Mike
_________________
D. Michael Basinger, RHCE
If at first you don't succeed, skydiving is not for you. - Anonymous
Back to top
View user's profile Send private message
Sargon
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2003
Posts: 90

PostPosted: Tue Aug 31, 2004 9:19 pm    Post subject: Reply with quote

Could someone put the ebuild and .bz2 file host somewhere? Both the initial URL nor the temporary one seem to work for me at the moment...

Thanks!

Sargon
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Aug 31, 2004 9:56 pm    Post subject: Reply with quote

Sargon wrote:
Could someone put the ebuild and .bz2 file host somewhere? Both the initial URL nor the temporary one seem to work for me at the moment...


Sorry - my ISP has some weird system when moving ADSL when I moved house.

New temp URLs
http://rsm1.demon.co.uk/~roy/downloads/wireless-config-0.5.5.ebuild
http://rsm1.demon.co.uk/~roy/downloads/wireless-config-0.5.5.tar.bz2

I've updated 1st post in this thread with the new temp links

Hopefully I get my hostname changed over the next few days ...
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Sargon
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2003
Posts: 90

PostPosted: Tue Aug 31, 2004 10:29 pm    Post subject: Reply with quote

UberLord wrote:
New temp URLs
http://rsm1.demon.co.uk/~roy/downloads/wireless-config-0.5.5.ebuild
http://rsm1.demon.co.uk/~roy/downloads/wireless-config-0.5.5.tar.bz2


Thanks! The package is simple to configure and works like a charm here. Hope it becomes an "official" gentoo package soon, in this or another form.

Sargon
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Aug 31, 2004 11:18 pm    Post subject: Reply with quote

Sargon wrote:
Thanks! The package is simple to configure and works like a charm here. Hope it becomes an "official" gentoo package soon, in this or another form.


Definitely another form ;)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
inode77
Veteran
Veteran


Joined: 20 Jan 2004
Posts: 1303
Location: Heart of Europe

PostPosted: Tue Aug 31, 2004 11:21 pm    Post subject: Reply with quote

I just don't get it...... Manually with simple one-line iwconfig command all works fine but with cool UberLord script no luck so far....
Hopefully somebody can help and point to were my mistake is.

Here is some info and sort of log about my situation:
Code:

> ap:
Netgear WG614R v1 b/g wireless router
std: 802.11b
acces mode: open
essid: ABC
key 1: 1234-1234-1234-1234-1234-1234-12
no essid broadcast
mac filtered
mac in list: 00:11:22:33:44:55

> laptop:
IBM Thinkpad T40p
Gentoo 2004.2, 2.6.7-r4 kernel header NPTL, 2.6.8-gentoo-r3 kernel
Atheros a/b wireless card from IBM

> lspci:
0000:02:02.0 Ethernet controller: Atheros Communications, Inc. AR5211 802.11ab NIC (rev 01)
Subsystem: Unknown device 17ab:8310
Flags: bus master, medium devsel, latency 168, IRQ 11
Memory at c0210000 (32-bit, non-prefetchable)
Capabilities: [44] Power Management version 2

> dmesg:
wlan: 0.8.4.2 (EXPERIMENTAL)
ath_hal: 0.9.11.6
ath_pci: no version for "ieee80211_ioctl_siwrate" found: kernel tainted.
ath_pci: 0.9.4.0 (EXPERIMENTAL)
ath0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ath0: mac 4.2 phy 3.0 5ghz radio 1.7 2ghz radio 2.3
ath0: 802.11 address: 00:11:22:33:44:55
ath0: Use hw queue 0 for WME_AC_BE traffic
ath0: Use hw queue 0 for WME_AC_BK traffic
ath0: Use hw queue 0 for WME_AC_VI traffic
ath0: Use hw queue 0 for WME_AC_VO traffic
ath0: Atheros 5211: mem=0xc0210000, irq=11

> old bootscript:
#!/bin/bash
/sbin/modprobe ath_pci
/usr/sbin/iwconfig ath0 essid ABC key open 1234-1234-1234-1234-1234-1234-12
/etc/init.d/net.ath0 start

> iwconfig -v:
iwconfig  Version 26
        Compatible with Wireless Extension v16 or earlier,
        Currently compiled with Wireless Extension v16.

Kernel  Currently compiled with Wireless Extension v16.

ath0    Recommend Wireless Extension v13 or later,
        Currently compiled with Wireless Extension v16.

> iwconfig:
ath0      IEEE 802.11b  ESSID:"ABC"                                                                                                             
          Mode:Managed  Frequency:2.462GHz  Access Point: 55:44:33:22:11:00                                                                     
          Bit Rate:11Mb/s   Tx-Power:50 dBm   Sensitivity=0/3
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:1234-1234-1234-1234-1234-1324-12   Security mode:open
          Power Management:off
          Link Quality:38/94  Signal level:-57 dBm  Noise level:-95 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

>ifconfig:
ath0      Link encap:Ethernet  HWaddr 00:11:22:33:44:55
          inet addr:192.168.1.153  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::205:4fff:ffff:fff/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:74 errors:6 dropped:0 overruns:0 frame:6
          TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:199
          RX bytes:7855 (7.6 Kb)  TX bytes:3142 (3.0 Kb)
          Interrupt:11 Memory:e0cca000-e0cda000

>iwlist ath0 scan:
ath0      Scan completed :
          Cell 01 - Address: 55:44:33:22:11:00
                    ESSID:"ABC"
                    Mode:Master
                    Frequency:2.462GHz
                    Quality:37/94  Signal level:-58 dBm  Noise level:-95 dBm
                    Encryption key:on
                    Bit Rate:1Mb/s
                    Bit Rate:2Mb/s
                    Bit Rate:5Mb/s
                    Bit Rate:11Mb/s
                    Extra:bcn_int=100


> iwpriv -all ath0:
ath0      Available read-only private ioctl :
Interface doesn't accept private ioctl...
getoptie (8BE9): Invalid argument
Interface doesn't accept private ioctl...
getkey (89F3): Invalid argument
<mapping sub-ioctl get_turbo to cmd 0x8BE1-1>
ath0      get_turbo:0
<mapping sub-ioctl get_mode to cmd 0x8BE1-2>
ath0      get_mode:2
<mapping sub-ioctl get_authmode to cmd 0x8BE1-3>
ath0      get_authmode:1
<mapping sub-ioctl get_protmode to cmd 0x8BE1-4>
ath0      get_protmode:1
<mapping sub-ioctl get_mcastcipher to cmd 0x8BE1-5>
ath0      get_mcastcipher:1
<mapping sub-ioctl get_mcastkeylen to cmd 0x8BE1-6>
ath0      get_mcastkeylen:16
<mapping sub-ioctl get_uciphers to cmd 0x8BE1-7>
ath0      get_uciphers:15
<mapping sub-ioctl get_ucastcipher to cmd 0x8BE1-8>
ath0      get_ucastcipher:0
<mapping sub-ioctl get_ucastkeylen to cmd 0x8BE1-9>
ath0      get_ucastkeylen:13
<mapping sub-ioctl get_roaming to cmd 0x8BE1-12>
ath0      get_roaming:1
<mapping sub-ioctl get_privacy to cmd 0x8BE1-13>
ath0      get_privacy:1
<mapping sub-ioctl get_countermeasu to cmd 0x8BE1-14>
ath0      get_countermeasu:0
<mapping sub-ioctl get_dropunencryp
 to cmd 0x8BE1-15>
 ath0      get_dropunencryp
 :0
 <mapping sub-ioctl get_wpa to cmd 0x8BE1-10>
 ath0      get_wpa:0
 <mapping sub-ioctl get_driver_caps to cmd 0x8BE1-16>
 ath0      get_driver_caps:124165
 <mapping sub-ioctl get_wme to cmd 0x8BE1-18>
 ath0      get_wme:0
 <mapping sub-ioctl get_hide_ssid to cmd 0x8BE1-19>
 ath0      get_hide_ssid:0
 <mapping sub-ioctl get_ap_bridge to cmd 0x8BE1-20>
 ath0      get_ap_bridge:1

> ping:
PING www.heise.de (193.99.144.71) 56(84) bytes of data.
64 bytes from www.heise.de (193.99.144.71): icmp_seq=1 ttl=243 time=24.4 ms

--- www.heise.de ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 24.428/24.428/24.428/0.000 ms

>>> Works fine manual with old script! <<<

> UberLord wireless script:
sleep_scan_ath0="1"
sleep_associate_ath0="5"
key_ABC="1234-1234-1234-1234-1234-1234-12"

> /etc/init.d/net.ath0 start:
* Running preup function
*   Configuring wireless network for ath0
*   Scanning for access points
* ath0 does not support scanning!
* You need to configure an ESSID in /etc/conf.d/wireless
*     essid_ath0="ESSID"
*     (set to "any" to pick the strongest available access point)
* or configure preferred_aps to force a list of access points
* or configure defaulting to Ad-Hoc when Managed fails
* Failed to configure wireless for ath0
* preup ath0 failed

> Uberlord wireless script:
sleep_scan_ath0="1"
sleep_associate_ath0="5"
key_ABC="1234-1234-1234-1234-1234-1234-12"
essid_ath0="any"

> /etc/init.d/net.ath0 start:
* Running preup function
*   Configuring wireless network for ath0
*   Connecting to "any" (WEP Disabled)...                                                                                                                  [ !! ]

*   Scanning for access points
*     Found 55:44:33:22:11:00 (WEP required)
* Couldn't find any access points on ath0
* Failed to configure wireless for ath0
* preup ath0 failed


THX for trying to help!
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Sep 01, 2004 12:25 am    Post subject: Reply with quote

inode77 wrote:
I just don't get it...... Manually with simple one-line iwconfig command all works fine but with cool UberLord script no luck so far....
Hopefully somebody can help and point to were my mistake is.


You're hiding your ESSID - as such, you need to map the AP's MAC address to it's ESSID
Code:
mac_essid_55:44:33:22:11:00="ABC"


Obviously you've changed the ESSID and MAC though....

What I don't understand is why your card doesn't support scanning as all athereos based devices I have supported it from a very early stage
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
inode77
Veteran
Veteran


Joined: 20 Jan 2004
Posts: 1303
Location: Heart of Europe

PostPosted: Wed Sep 01, 2004 4:39 am    Post subject: Reply with quote

Quote:

You're hiding your ESSID - as such, you need to map the AP's MAC addres to it's ESSID

Ok I added like your example a line to bind the essid to the mac address.
I rebuilt the modules (madwifi driver) once more to be sure to have uptodate drivers. (26.08.2004)
Code:

> UberLord wireless script
mac_essid_55:44:33:22:11="ABC"

> modules loaded && and interface start
root@stingray:init.d # /etc/init.d/net.ath0 start
/sbin/runscript.sh: line 123: mac_essid_55:44:33:22:11="ABC": command not found
 * Running preup function
 *   Configuring wireless network for ath0
 *   Scanning for access points
 * ath0 does not support scanning!
 * You need to configure an ESSID in /etc/conf.d/wireless
 *     essid_ath0="ESSID"
 *     (set to "any" to pick the strongest available access point)
 * or configure preferred_aps to force a list of access points
 * or configure defaulting to Ad-Hoc when Managed fails
 * Failed to configure wireless for ath0
 * preup ath0 failed

> iwlist ath0 scanning
ath0      Interface doesn't support scanning : Invalid argument

manual loading of essid and wep key && dhcpcd ath0
> iwlist ath0 scan
ath0      Scan completed :
          Cell 01 - Address: 55:44:33:22:11:00
                    ESSID:"ABC"
                    Mode:Master
                    Frequency:2.462GHz
                    Quality:23/94  Signal level:-72 dBm  Noise level:-95 dBm
                    Encryption key:on
                    Bit Rate:1Mb/s
                    Bit Rate:2Mb/s
                    Bit Rate:5Mb/s
                    Bit Rate:11Mb/s
                    Extra:bcn_int=100




I definitifly don't get it anymore before having a connection the interface returns "can not scan" and after successfull connection scanning is possible without a problem ?!?

And the script still seems to have some problems.

Thx for your help UberLord => I go for a short hopefully troublefree nap!
Back to top
View user's profile Send private message
mottie
n00b
n00b


Joined: 09 Jan 2003
Posts: 4

PostPosted: Wed Sep 01, 2004 6:15 am    Post subject: yippee!! Reply with quote

Stumbled across this howto with google (searched for wireless gentoo howto). Was initially cursing your name as I came across http://wiki.gentoo-portage.com/HOWTO_Wireless_Configuration_and_Startup which is nothing but broken links. Searched in despair for net-wireless/wireless-config-0.4.9.ebuild but was unable to find anything.

After finding this page I was able to get my wireless card (ipw2100) working within a few minutes. Thanks for all your work and effort. Much appreciated.

Would highly suggest updating the wiki, as it is the #1 answer on google :)

mottie
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Sep 01, 2004 9:39 am    Post subject: Reply with quote

inode77 wrote:

> modules loaded && and interface start
root@stingray:init.d # /etc/init.d/net.ath0 start
/sbin/runscript.sh: line 123: mac_essid_55:44:33:22:11="ABC": command not found


My fault - remove the : from the line

mac_essid_5544332211="ABC"

Still, I would try remerging the madwifi driver as it should be able to scan
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Sep 01, 2004 9:40 am    Post subject: Re: yippee!! Reply with quote

mottie wrote:
Stumbled across this howto with google (searched for wireless gentoo howto). Was initially cursing your name as I came across http://wiki.gentoo-portage.com/HOWTO_Wireless_Configuration_and_Startup which is nothing but broken links. Searched in despair for net-wireless/wireless-config-0.4.9.ebuild but was unable to find anything.

After finding this page I was able to get my wireless card (ipw2100) working within a few minutes. Thanks for all your work and effort. Much appreciated.

Would highly suggest updating the wiki, as it is the #1 answer on google :)

mottie


Sorry about that - I'm unsure about how to update the wiki (lack of knowledge on my part).
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
epohs
n00b
n00b


Joined: 27 Aug 2004
Posts: 51

PostPosted: Wed Sep 01, 2004 10:31 pm    Post subject: Reply with quote

i'm having trouble getting my Linksys WMP54GS wireless network card to recognize my WRT54GS router.


I've used ndiswrapper to get the drivers installed, and i think that part worked ok. However, i'm still not finding the network. I'm very much a noob, so i'm not sure exactly what tools i have at my disposal, so i'll post beaucoup information in the hopes that some of it is helpful. :D


iwconfig:
Code:
wlan0     IEEE 802.11g  ESSID:off/any
          Mode:Managed  Frequency:2.462GHz  Access Point: 00:00:00:00:00:00
          Bit Rate:54Mb/s   Tx-Power:24 dBm
          RTS thr:2347 B   Fragment thr:2346 B
          Encryption key:off
          Power Management:off
          Link Quality:100/100  Signal level:-10 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


ifconfig:
Code:
wlan0     Link encap:Ethernet  HWaddr 00:0F:66:70:41:0B
          inet addr:192.168.1.1  Bcast:192.168.1.6  Mask:255.255.255.0
          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:10 Memory:db000000-db001fff



dmesg | grep wlan0:
Code:
wlan0: ndiswrapper ethernet device 00:0f:66:70:41:0b using driver bcmwl5.sys
ndiswrapper device wlan0 supports WPA with AES/CCMP and TKIP ciphers




lspci -v:
Code:
0000:00:09.0 Network controller: Broadcom Corporation: Unknown device 4320 (rev 03)
        Subsystem: Linksys: Unknown device 0015
        Flags: fast devsel, IRQ 10
        [virtual] Memory at db000000 (32-bit, non-prefetchable) [disabled]



/etc/init.d/net.wlan0 restart:
Code:
 * Running preup function
 *   Configuring wireless network for wlan0
 *   Scanning for access points
 *     no access points found
 * Couldn't find any access points on wlan0
 * Failed to configure wireless for wlan0
 * preup wlan0 failed


the AP seems to be broadcasting perfectly, as my XP box upstairs sees it just fine.

i'm running gentoo 2004.2, and the 2.6.7 kernel.


I would really appreciate any help you can offer.

Thanks again
Back to top
View user's profile Send private message
BloodyNewbie
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2004
Posts: 88

PostPosted: Thu Sep 02, 2004 12:23 am    Post subject: Reply with quote

Hi all,

My Problem: I can't connect to my AP, but I can scan it.

using:
-gentoo 2.6.8.1
-wireless-tools emerged
-wireless-config emerged and your ebuild 0.5.5
-madwifi-driver NOT emerged but
-madwifi-cvs emerged and ebuild 0.3 on it(src: http://gentoo.cipheralgo.org/ ) because of compile problems in 2.6.8.1
-PCI Card is IBM a/b 168c:0012 (rev1)

kernelconfig
Code:

CONFIG_NET_WIRELESS=y
CONFIG_NET_RADIO=y
all drivers=m

lsmod
Code:

wlan
ath_hal
ath_pci


/etc/conf.d/net:
Code:

iface_ath0="dhcp"
source /etc/init.d/wireless.sh

preup() {
        wireless_up ${1}
        return $?
}

predown() {
        wireless_down ${1}
        return $?
}

/etc/conf.d/wireless:
Code:

essid_ath0="any"
mode_ath0="managed"


now the procedure:

ifconfig ath0 up
works

iwconfig ath0
Code:

ath0      IEEE 802.11  ESSID:""
          Mode:Managed  Frequency:5.6GHz  Access Point: FF:FF:FF:FF:FF:FF
          Bit Rate:6Mb/s   Tx-Power:50 dBm   Sensitivity=0/3
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:58/94  Signal level:-37 dBm  Noise level:-95 dBm
          Rx invalid nwid:339  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:1266  Invalid misc:1266   Missed beacon:5

I can change the ESSID to the AP-ESSID with iwconfig ath0 essid apName but that doesn't change the Access Point Adress (FF:FF...)

iwlist ath0 scan
shows me the AP's around, works

now the funny part:
/etc/init.d/net.ath0 start
Code:

 * Running preup function
 *   Configuring wireless network for ath0
 *   Connecting to "any" (WEP Disabled)...                                  [ !! ]

 *   Scanning for access points
 * ath0 does not support scanning!
 * You need to configure an ESSID in /etc/conf.d/wireless
 *     essid_ath0="ESSID"
 *     (set to "any" to pick the strongest available access point)
 * or configure preferred_aps to force a list of access points
 * or configure defaulting to Ad-Hoc when Managed fails
 * Failed to configure wireless for ath0
 * preup ath0 failed


As you can see, the procedure of starting this device made ifconfig ath0 down! I do have to put it up manually again afterwards with ifconfig ath0 up.

Now, if I change the essid_ath0 to my AP-name, it comes the following:
/etc/init.d/net.ath0 start
Code:

 * Running preup function
 *   Configuring wireless network for ath0
 *   Connecting to "APname" (WEP Disabled)...                           [ !! ]

 * Failed to configure wireless for ath0
 * preup ath0 failed


Well, at the moment, I'm pretty desperate, it looks like the madwifi driver messes something up, but I don't know what it is.
I would appreciate any help, I could get. Thx a lot
_________________
gentoo - per aspera ad astra, or: riding on a rocket :)
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Sep 02, 2004 8:44 am    Post subject: Reply with quote

@BloodyNewbie - the madwifi driver is perfectly capable of scanning. I use this driver myself. However, I use the current portage one in ~x86 alongside gentoo-dev-sources. Once you get scanning to work - and remove essid_ath0="any" then it should start working.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page Previous  1, 2, 3 ... 53, 54, 55 ... 57, 58, 59  Next
Page 54 of 59

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum