diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-01-17 01:52:24 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-01-17 01:52:24 +0100 |
commit | 66d0bb89a4cfdc68212e303ecbad94ef1967e2d6 (patch) | |
tree | f4c859845f3f5d36ad04d10e175ab49cdb61d32f /sys/src/9 | |
parent | a1e9adb65893e370ee6191af371c2f9b81529c29 (diff) |
iwl: add "reset" ctl message to software tigger device reset
Diffstat (limited to 'sys/src/9')
-rw-r--r-- | sys/src/9/pc/etheriwl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/src/9/pc/etheriwl.c b/sys/src/9/pc/etheriwl.c index 56868b331..b327d386b 100644 --- a/sys/src/9/pc/etheriwl.c +++ b/sys/src/9/pc/etheriwl.c @@ -1956,6 +1956,10 @@ iwlctl(Ether *edev, void *buf, long n) 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; |