WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: wpa_supplicant needs two attempts to connect  (Read 3039 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14567
wpa_supplicant needs two attempts to connect
« on: August 18, 2012, 01:45:33 AM »
I'm not really sure that this is a wpa_supplicant problem, but around about the time the extension was updated to version 1.0, I started to have problems to connect using a script.

Unfortunately, at about the same time, I changed my laptop, obliging me to use the wl-modules-3.0.21-tinycore extension.

Basically my script will no longer connect first time and I'm obliged to do this:
Code: [Select]
[run script]
udhcpc (v1.20.2) started
Sending discover...
Sending discover...
Sending discover...
No lease, forking to background

$ ps aux | grep udhcpc
 4023 root     udhcpc -b -i eth1 -x hostname boxdell -p /var/run/udhcpc.eth1.pid

$ sudo kill 4023
$ sudo udhcpc -b -i eth1 -x hostname boxdell -p /var/run/udhcpc.eth1.pid
udhcpc (v1.20.2) started
Sending discover...
Sending select for 192.168.1.29...
Lease of 192.168.1.29 obtained, lease time 86400
deleting routers
route: SIOCDELRT: No such process
adding dns 192.168.1.1
adding dns 192.168.1.1

This is using "02:00.0 Network controller: Broadcom Corporation BCM43228 802.11a/b/g/n" hardware and I've tried with two different wireless access points.

No amount of "sleep" commands in the script help - does anybody see the same behaviour?

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: wpa_supplicant needs two attempts to connect
« Reply #1 on: August 21, 2012, 09:54:46 PM »
i don't know what script you're mean but i have same problem after i close vitrualbox
after that my adapter loses network and need to kill udhcpc and reconnect by wifi.sh
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14567
Re: wpa_supplicant needs two attempts to connect
« Reply #2 on: April 01, 2013, 06:06:56 AM »
It seems this is indeed a bug with the wl (hybrid-portsrc-5.100.82.112) driver.

The driver compiles in wext mode with the bug, but it seems if it is compiled in cfg80211 mode, the bug is not present.

Things look OK after some very quick testing, I'll try it for a bit longer before posting.