Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wireless works until I try to restart
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
sdive
n00b
n00b


Joined: 29 Jun 2007
Posts: 3

PostPosted: Fri Jun 29, 2007 4:38 pm    Post subject: Wireless works until I try to restart Reply with quote

Hi,

I have an AIRONET Wireless Communications Cisco Aironet Wireless 802.11b card that is connected to a router with WEP encryption. It all works fine. This is my /etc/conf.d/net:

Code:
channel_eth1="mychannel" # Any way to set it on auto?
essid_eth1="myessid"
key_myessid="s:mypassphrase"
config_eth1=( "dhcp" )


So if I lose connection and restart my init script for my wireless it can't bring up the card. I have to reboot my machine. Since I have a ThinkPad I can see whether the wireless green light is on, and it is not. It just won't enable again.

Any thoughts?

Thanks.


Last edited by sdive on Fri Jun 29, 2007 7:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
Impalatore-polacco
Apprentice
Apprentice


Joined: 15 Apr 2007
Posts: 203
Location: Campogalliano - bell'ITALIA

PostPosted: Fri Jun 29, 2007 5:55 pm    Post subject: Reply with quote

First eneable CONFIG_PACKET in the kernel configuration, amd then try to use wpa_supplicant:
Code:
emerge net-wireless/wpa_supplicant
. Configure /etc/conf.d/net
Code:
modules=( "wpa_supplicant" )

wpa_supplicant_eth1="-Dwext"

config_eth1=( "dhcp" )
dhcp_eth1="nontp nonis"

depend_eth1() {
        need <Drivers for Cisco Aironet>
}

also edit /etc/wpa_supplicant/wpa_supplicant.conf
Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
update_config=0
fast_reauth=1

network={
  ssid="youre ssid"
  key_mgmt=NONE
  wep_key0="youre wep key"
  wep_tx_keyidx=0
  priority=5
  auth_alg=SHARED
}


You can also add the startup script to the default runlevel:
Code:
rc-update add net.eth1 default


PS: Make sure the following options are set (IEEE 802.11 WEP encryption as a module causes some problems, is better to built it in the kernel):
Linux Kernel Configuration:

Networking --->
<*> Generic IEEE 802.11 Networking Stack
[ ] Enable full debugging output
<*> IEEE 802.11 WEP encryption (802.1x)
<*> IEEE 802.11i CCMP support
<*> IEEE 802.11i TKIP encryption
< > Software MAC add-on to the IEEE 802.11 networking stack

If you have a kernel older than gentoo-sources-2.6.19-r5 make sure that the following kernel options are set:

Networking --->
[ ] Generic IEEE 802.11 Networking Stack

Device Drivers --->
Network Device support --->
Wireless LAN (non-hamradio) --->
[*] Wireless LAN drivers (non-hamradio) & Wireless Extensions

Cryptographic options --->
[*] Cryptographic API
<*> AES cipher algorithms
<*> ARC4 cipher algorithm
<*> Michael MIC keyed digest algorithm


In case you are unable to deselect the Generic IEEE 802.11 Networking Stack option, deselect all WLAN drivers (everything) under

Device Drivers -->
Network device support -->
Wireless LAN (non-hamradio) -->
Wireless LAN drivers (non-hamradio) & Wireless Extensions -->
(remove everything on this menu EXCEPT Wireless Extensions)

As some selected options there depend on "Generic IEEE 802.11 Networking Stack
_________________
Ci stanno osservando, ci sono i pipistrelli....ne hai presa troppa bello, ne hai presa troppa
Back to top
View user's profile Send private message
sdive
n00b
n00b


Joined: 29 Jun 2007
Posts: 3

PostPosted: Fri Jun 29, 2007 6:23 pm    Post subject: Reply with quote

Impalatore-polacco wrote:
First eneable CONFIG_PACKET in the kernel configuration, amd then try to use wpa_supplicant:
Code:
emerge net-wireless/wpa_supplicant
. Configure /etc/conf.d/net
Code:
modules=( "wpa_supplicant" )

wpa_supplicant_eth1="-Dwext"

config_eth1=( "dhcp" )
dhcp_eth1="nontp nonis"

depend_eth1() {
        need <Drivers for Cisco Aironet>
}

also edit /etc/wpa_supplicant/wpa_supplicant.conf
Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
update_config=0
fast_reauth=1

network={
  ssid="youre ssid"
  key_mgmt=NONE
  wep_key0="youre wep key"
  wep_tx_keyidx=0
  priority=5
  auth_alg=SHARED
}


You can also add the startup script to the default runlevel:
Code:
rc-update add net.eth1 default


PS: Make sure the following options are set (IEEE 802.11 WEP encryption as a module causes some problems, is better to built it in the kernel):
Linux Kernel Configuration:

Networking --->
<*> Generic IEEE 802.11 Networking Stack
[ ] Enable full debugging output
<*> IEEE 802.11 WEP encryption (802.1x)
<*> IEEE 802.11i CCMP support
<*> IEEE 802.11i TKIP encryption
< > Software MAC add-on to the IEEE 802.11 networking stack

If you have a kernel older than gentoo-sources-2.6.19-r5 make sure that the following kernel options are set:

Networking --->
[ ] Generic IEEE 802.11 Networking Stack

Device Drivers --->
Network Device support --->
Wireless LAN (non-hamradio) --->
[*] Wireless LAN drivers (non-hamradio) & Wireless Extensions

Cryptographic options --->
[*] Cryptographic API
<*> AES cipher algorithms
<*> ARC4 cipher algorithm
<*> Michael MIC keyed digest algorithm


In case you are unable to deselect the Generic IEEE 802.11 Networking Stack option, deselect all WLAN drivers (everything) under

Device Drivers -->
Network device support -->
Wireless LAN (non-hamradio) -->
Wireless LAN drivers (non-hamradio) & Wireless Extensions -->
(remove everything on this menu EXCEPT Wireless Extensions)

As some selected options there depend on "Generic IEEE 802.11 Networking Stack


Why do I need wpa_supplicant when the encryption is WEP?

Anyway, I tried to emerge it (all the above mentioned kernel configurations were already built-in) and used your configurations.

The same thing happens although when I start the init script this is what I get:

Code:
Start Eth1
  Starting wpa_supplicant on eth1 ...
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 7 value 0x1 - ioctl[SIOCSIWAUTH]: Operation not supported
  Starting wpa_cli on eth1 ...
    Backgrounding ...


PS. What is the name of the Cisco Aironet driver?
Back to top
View user's profile Send private message
sdive
n00b
n00b


Joined: 29 Jun 2007
Posts: 3

PostPosted: Mon Jul 02, 2007 4:05 pm    Post subject: Reply with quote

BUMP
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