summaryrefslogtreecommitdiff
path: root/sys/src/9/pc/etheriwl.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-07-01 23:32:21 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2013-07-01 23:32:21 +0200
commit6c2e9a98e217e95d75c511561e1198e2d926adfd (patch)
tree02350ba83528894413fbc593076452bc3804a341 /sys/src/9/pc/etheriwl.c
parent0542f08d10334abfe92d23484379563bb6f2b31e (diff)
wifi: handle authentication independent of current bss to allow multiple ap's (roaming)
Diffstat (limited to 'sys/src/9/pc/etheriwl.c')
-rw-r--r--sys/src/9/pc/etheriwl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/pc/etheriwl.c b/sys/src/9/pc/etheriwl.c
index 3e9530ce8..fe555c651 100644
--- a/sys/src/9/pc/etheriwl.c
+++ b/sys/src/9/pc/etheriwl.c
@@ -2017,7 +2017,7 @@ iwlproc(void *arg)
/* wait for association */
setled(ctlr, 2, 10, 10);
- while((bss = wifi->bss) != nil){
+ while(wifichecklink(wifi) && (bss = wifi->bss) != nil){
if(bss->aid != 0)
break;
tsleep(&up->sleep, return0, 0, 1000);
@@ -2029,7 +2029,7 @@ iwlproc(void *arg)
/* wait for disassociation */
edev->link = 1;
setled(ctlr, 2, 0, 1);
- while((bss = wifi->bss) != nil){
+ while(wifichecklink(wifi) && (bss = wifi->bss) != nil){
if(bss->aid == 0)
break;
tsleep(&up->sleep, return0, 0, 1000);