ref: 66d0bb89a4cfdc68212e303ecbad94ef1967e2d6
parent: a1e9adb65893e370ee6191af371c2f9b81529c29
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Jan 16 20:52:24 EST 2015
iwl: add "reset" ctl message to software tigger device reset
--- a/sys/src/9/pc/etheriwl.c
+++ b/sys/src/9/pc/etheriwl.c
@@ -1956,6 +1956,10 @@
Ctlr *ctlr;
ctlr = edev->ctlr;
+ if(n >= 5 && memcmp(buf, "reset", 5) == 0){
+ ctlr->broken = 1;
+ return n;
+ }
if(ctlr->wifi)
return wifictl(ctlr->wifi, buf, n);
return 0;