shithub: riscv

Download patch

ref: 1f6a402c46d5f95c656b14e4fa9a5de933576f01
parent: 6e0835f7d8255c0f9f66ec349871e2c8da6efaf4
author: cinap_lenrek <[email protected]>
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;