git: 9front

Download patch

ref: 2285b6772c94aaf9791e63dbb857ddc3a9d301f2
parent: 10641ffb3d28150cf6bc7f198c92b1e57dd2ef7a
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sun Feb 10 21:10:36 EST 2013

wifi: reset status when clearing essid

--- a/sys/src/9/pc/wifi.c
+++ b/sys/src/9/pc/wifi.c
@@ -419,6 +419,7 @@
 		if(cb->f[1] == nil){
 			wifi->essid[0] = 0;
 			wifi->bss = nil;
+			wifi->status = Snone;
 		} else {
 			strncpy(wifi->essid, cb->f[1], 32);
 			wifi->essid[32] = 0;
--