iwl: add "reset" ctl message to software tigger device reset
This commit is contained in:
parent
a1e9adb658
commit
66d0bb89a4
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue