Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wpa_supplicant issues
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
lucid insanity
n00b
n00b


Joined: 17 Aug 2012
Posts: 7

PostPosted: Mon Jan 21, 2013 9:02 pm    Post subject: Wpa_supplicant issues Reply with quote

I am currently unable to get my wireless to work. I am trying to use wpa_supplicant to manage my connection. My wireless adapter is a TP-LINK TL-WN722N.

I have verified that my wireless adapter is recognized by running
Code:
ifconfig -a
which (abridged) returns
Code:
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether f4:ec:38:85:5a:6f txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


running
Code:
/etc/init.d/net.wlan0 start
gives the following output
Code:
Bringing up interface wlan0
Starting wpa_supplicant on wlan0...
ioctl[SIOCSIWPMKSA]:Invalid argument
ioctl[SIOCSIWMODE]: Invalid argument
ioctl[SIOCGIWRANGE]:Invalid argument
ioctl[SIOCGIWMODE]:Invalid argument
ioctl[SIOCSIWAP]: Invalid argument
ioctl[IEEE80211_IOCTL_SETPARAM]:Invalid argument
ioctl[SIOCGIWMODE]:Invalid argument
ioctl[SIOCSIWAP]:Invalid argument
Failed to initialize driver interface
start-stop-daemon: failed to start '/usr/sbin/wpa_supplicant'
ERROR: net.wlan0 failed to start

here is the contents of my /etc/conf.d/net file
Code:
config_wlan0="dhcp"
modules="wpa_supplicant"
wpa_supplicant_wlan0="Dmadwifi"


and here is the contents of the wpa_supplicant.conf file
Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
network={
        key_mgmt=NONE
        priority=-999
}


Any suggestions?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Tue Jan 22, 2013 12:12 am    Post subject: Reply with quote

I would
Code:
emerge linux-firmware
I associate lots of siocs errors with missing firmware.
If that does no good:
edit /etc/conf.d/net
Quote:
dns_servers="8.8.8.8 "
modules_wlan0="wpa_supplicant"
#wpa_supplicant_wlan0="-Dwext" ONE
#wpa_supplicant_wlan0="-Dnl80211" OR THE OTHER
wpa_timeout_wlan0=15
iwconfig_wlan0_mode="Managed"
#config_wlan0="192.168.1.4 netmask 255.255.255.0 broadcast 192.168.1.255"
#routes_wlan0="default gw 192.168.1.1" ONE

#config_eth0="dhcp nodns"
#dhcpcd_eth0="-t 10" OR THE OTHER
use your ip's if

recent changes to openrc and udev and dhcp may cause mistimed service startups.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Tue Jan 22, 2013 2:22 am    Post subject: Reply with quote

networkmanager with avahi dhcpcd resolvconf use flags & broadcom firmware cutter did me wonders.... for my atheros card it was as easy as networkmanager with the use flags.... wicd setup my wireless equally as well though it did have tendencies to break randomly on me where network manager stayed solid with the use flags.... i also use nm-applet to manage network manager id only stay your course with setting up the back ends like that if your running a server (and at that point should be running wire anyways)

mkultra@mkultra ~/Downloads $ cat /etc/conf.d/net
#Generated by NetworkManager
bla bla bla bla bla bla bla auto done 4 me =)
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Fri Jan 25, 2013 10:52 pm    Post subject: Reply with quote

Quote:

wpa_supplicant_wlan0="Dmadwifi"

Should that be
Code:

wpa_supplicant_wlan0="-Dmadwifi"

(Do you need to supply the dash in front of the "-D[driver]"
option to wpa_supplicant?)
_________________
TIA
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sat Jan 26, 2013 12:36 am    Post subject: Reply with quote

lucid insanity,

My /etc/conf.d/net file contains:
Code:
modules="wpa_supplicant"
wpa_supplicant_wlan0="-Dnl80211 -c/etc/wpa_supplicant/wpa_supplicant.conf"

_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
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