1d23e
![]() |
|
|
|
|
|||||||
| Networking Network related discussions (including general TCP/IP stuff, routing, etc). |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I'm getting some errors when i boot my machine related to wpa_supplicant, seems like it's not able to associate with my AP automatically. I'm connecting to a WPA AP using a pass phrase
Error at boot Code:
Feb 18 07:32:11 pandora kernel: /etc/rc.d/wpa_supplicant: WARNING: /etc/wpa_supplicant.conf is not readable. Feb 18 07:32:11 pandora kernel: /etc/rc.d/wpa_supplicant: WARNING: failed precmd routine for wpa_supplicant Feb 18 07:32:11 pandora kernel: ifconfig: Feb 18 07:32:11 pandora kernel: create: bad value Code:
wlans_iwn0="wlan0" ifconfig_wlan0="ssid xxxx WPA DHCP" Code:
legal.intel_iwn.license_ack=1 if_iwn_load="YES" if_iwnfw_load="YES" wlan_wep_load="YES" wlan_ccmp_load="YES" wlan_tkip_load="YES" Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
ssid="xxxx"
proto=RSN WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="xxxx"
}
Also, i would like to add that when i do run wpa_supplicant manually, my connection to the AP is stable, but i seem to get a lot of packet loss and timeouts. Code:
pandora# wpa_supplicant -D bsd -i wlan0 -c /etc/wpa_supplpicant.conf CTRL-EVENT-SCAN-RESULTS Trying to associate with xx:xx:xx:xx:xx:xx (SSID='xxxx' freq=2462 MHz) Associated with xx:xx:xx:xx:xx:xx WPA: Key negotiation completed with xx:xx:xx:xx:xx:xx [PTK=TKIP GTK=TKIP] CTRL-EVENT-CONNECTED - Connection to xx:xx:xx:xx:xx:xx completed (auth) [id=0 id_str=] Bit |
|
#2
|
|||
|
|||
|
Quote:
This is loader.conf isn't it? Quote:
# ls -l /etc/wpa_supplicant.conf?Quote:
Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
ssid="xxxx"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
psk="xxxx"
}
|
|
#3
|
|||
|
|||
|
Quote:
Quote:
Code:
-rw-r--r-- 1 bitunique bitunique 222 Feb 18 07:59 /etc/wpa_supplpicant.conf Quote:
__________________
In a world without walls and fences, who needs windows and gates. |
|
#4
|
|||
|
|||
|
Quote:
Try switching to CCMP first, it might solve your issue regarding stability. |
|
#5
|
|||
|
|||
|
Quote:
It didn't occur to me that the file had to be root:wheel even tho that is completely logical heh. Quote:
__________________
In a world without walls and fences, who needs windows and gates. |
|
#6
|
|||
|
|||
|
Just did a dmesg |grep iwn to check things out, and i got the following
Code:
wlan0: ieee80211_vap_detach: STA parent iwn0 iwn0: need multicast update callback
__________________
In a world without walls and fences, who needs windows and gates. |
|
#7
|
|||
|
|||
|
Quote:
As I said, TKIP has a known issue with rekeying. You can fix that by either changing the "Group Key Interval Update", in case your AP provides such a setting, or by building your own kernel with the fix applied. Read this starting with post #229. |
|
#8
|
|||
|
|||
|
Thanks for your support on this? I'll get cracking on building my own kernel
__________________
In a world without walls and fences, who needs windows and gates. |
|
#9
|
|||
|
|||
|
Quote:
|
|
#10
|
|||
|
|||
|
Alright, its been a little while now since i patched my kernel and rebuilt my driver. And it's definately better.
But its still not completely stable. dmesg | grep iwn Code:
iwn0: <Intel(R) PRO/Wireless 4965BGN> mem 0xf3100000-0xf3101fff irq 17 at device 0.0 on pci6 iwn0: Reg Domain: MoW2, address 00:13:e8:95:f8:8b iwn0: [ITHREAD] iwn0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps iwn0: 11na MCS: 15Mbps 30Mbps 45Mbps 60Mbps 90Mbps 120Mbps 135Mbps 150Mbps 30Mbps 60Mbps 90Mbps 120Mbps 180Mbps 240Mbps 270Mbps 300Mbps iwn0: 11ng MCS: 15Mbps 30Mbps 45Mbps 60Mbps 90Mbps 120Mbps 135Mbps 150Mbps 30Mbps 60Mbps 90Mbps 120Mbps 180Mbps 240Mbps 270Mbps 300Mbps iwn0: need multicast update callback iwn0: need multicast update callback iwn0: need multicast update callback Code:
gnome-keyring-daemon[1211]: couldn't allocate secure memory to keep passwords and or keys from being written to the disk Code:
make clean && make
__________________
In a world without walls and fences, who needs windows and gates. |
|
#11
|
|||
|
|||
|
Quote:
Code:
# cd /usr/src # make buildkernel # make installkernel # reboot |
|
#12
|
|||
|
|||
|
Quote:
Yes i did all the steps. I patched the kernel, rebuilt it, and reinstalled it. then rebuilt the driver/moduled, then i rebooted. Every thing works a lot better. But i still get some hangups now and then.
__________________
In a world without walls and fences, who needs windows and gates. |
|
#13
|
|||
|
|||
|
Quote:
|
|
#14
|
|||
|
|||
|
Quote:
Tried dhclient wlan0 Code:
no link..........giving up.
__________________
In a world without walls and fences, who needs windows and gates. |
|
#15
|
|||
|
|||
|
uhmm.. that's weird. That shouldn't happen. Can you enable debugging with
# wlandebug +scan +assoc +state and post the output? You might also want to run wpa_supplicant manually with # wpa_supplicant -Dbsd -iwlan0 -c/etc/wpa_supplicant.conf -ddts.If we can't figure out what's wrong, you can get the old driver back with Code:
# cd /usr/src/sys/modules/iwn # make # make install # cd /usr/src/sys/modules/iwnfw # make # make install |
|
#16
|
|||
|
|||
|
Alright, i reverted back. here are some debugging from the driver that failed.
That's the only relevant part i could see Code:
Feb 18 18:20:06 pandora kernel: wlan0: [00:21:96:13:a4:08] ieee80211_scan_assoc_fail: reason 1 Feb 18 18:20:06 pandora kernel: wlan0: [00:21:96:13:a4:08] sta_assoc_fail: reason 1 fails 15 wpa_supplicant[320]: failed to disable wpa in the driver wlan0: ieee80211_new_state_locked:pending scan -> AUTH transission lost
__________________
In a world without walls and fences, who needs windows and gates. Last edited by DutchDaemon; February 19th, 2010 at 01:18. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why is there no graphics driver for my nvidia card in FreeBSD 8.0 - RELEASE i386? | Lasse | X.Org | 6 | December 18th, 2009 20:30 |
| [Solved] 8.0-RELEASE-i386-dvd1.iso.gz | lumiwa | Installing & Upgrading | 4 | December 8th, 2009 21:19 |
| [Solved] 7.2-Release-i386 livefs.iso ? | cch | General | 2 | October 23rd, 2009 09:27 |
| 7.1-RELEASE-i386-dvd1.iso & SHA256 | z3n | Installing & Upgrading | 14 | April 21st, 2009 01:55 |
| FreeBSD 7.1 RC1 boot only ( i386 ) error | fbsd24h | Installing & Upgrading | 5 | December 13th, 2008 04:37 |