Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Spectrum-cs and the iwconfig net module
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Dolda2000
n00b
n00b


Joined: 05 Mar 2004
Posts: 37
Location: Täby, Sweden

PostPosted: Sun Jun 19, 2005 6:38 pm    Post subject: Spectrum-cs and the iwconfig net module Reply with quote

Hi all!

I'm using an Intel PRO/Wireless 2011B card. Some of you may know that this card is a bit... "special", in that it is one of the few Prism-based cards (that I've ever encountered, at least) to require a firmware download upon plugin. It does work with the latest driver from http://orinoco.sf.net/, though (although it requires some source excavation to work with the latest kernel, but that's another story).

Anyhow, the consensus is that the card works perfectly by itself, but not exactly perfectly when I'm trying to use it with the iwconfig net module from the new baselayout (btw., thank you, Gentoo devs, for the new baselayout -- it's wonderful!). The thing is, this driver requires the interface to be up before scanning for APs, but the iwconfig module tries to scan while it's still down. I "solved" it by adding the following line to /lib/rcscripts/net.modules.d/iwconfig:
Code:
        veinfo "Scanning for access points"

Added-> LANG=C /sbin/ip link set ${iface} up

        # Sleep if required
        eval x=\"\$\{sleep_scan_${ifvar}\}\"
        [[ -n ${x} ]] && sleep ${x}

        local scan=$( iwlist ${iface} scanning 2>/dev/null )

That feels quite ugly, however. Not least since it's going to disappear the next time I upgrade baselayout (right?), but also since upping the interface doesn't really seem to belong in the iwconfig module. Is there another, canonical way to fix this? For reference, here's my /etc/conf.d/net:
Code:
modules=(iproute2 iwconfig)
config_eth0=(dhcp)
preferred_aps=(101 default)
key_101="[1] $(cat /etc/wep/key-101) [1] enc open"
key_default="[1] $(cat /etc/wep/key-default) [1] enc open"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
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