changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: iwl: add "reset" ctl message to software tigger device reset

changeset 4218: 4bb2e954b1c8
parent 4217: 0c812f72386d
child 4219: bccb1b2ac93b
author: cinap_lenrek@felloff.net
date: Sat, 17 Jan 2015 01:52:24 +0100
files: sys/src/9/pc/etheriwl.c
description: iwl: add "reset" ctl message to software tigger device reset
     1.1--- a/sys/src/9/pc/etheriwl.c
     1.2+++ b/sys/src/9/pc/etheriwl.c
     1.3@@ -1956,6 +1956,10 @@ iwlctl(Ether *edev, void *buf, long n)
     1.4 	Ctlr *ctlr;
     1.5 
     1.6 	ctlr = edev->ctlr;
     1.7+	if(n >= 5 && memcmp(buf, "reset", 5) == 0){
     1.8+		ctlr->broken = 1;
     1.9+		return n;
    1.10+	}
    1.11 	if(ctlr->wifi)
    1.12 		return wifictl(ctlr->wifi, buf, n);
    1.13 	return 0;