diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-03-17 18:21:01 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-03-17 18:21:01 +0100 |
commit | f783587f05a9839b92d986eb7268981f7894e054 (patch) | |
tree | 87b972c244cb1300ad7473da2c861293c6c965ef /sys/src/9 | |
parent | 84d5bbc6340856d85cfc498ffce91e90be90bf18 (diff) |
etheriwl: provide shutdown function
Diffstat (limited to 'sys/src/9')
-rw-r--r-- | sys/src/9/pc/etheriwl.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/src/9/pc/etheriwl.c b/sys/src/9/pc/etheriwl.c index 03f9f7b54..50c134c85 100644 --- a/sys/src/9/pc/etheriwl.c +++ b/sys/src/9/pc/etheriwl.c @@ -2240,6 +2240,17 @@ done: iunlock(ctlr); } +static void +iwlshutdown(Ether *edev) +{ + Ctlr *ctlr; + + ctlr = edev->ctlr; + if(ctlr->power) + poweroff(ctlr); + ctlr->broken = 0; +} + static Ctlr *iwlhead, *iwltail; static void @@ -2345,6 +2356,7 @@ again: edev->attach = iwlattach; edev->ifstat = iwlifstat; edev->ctl = iwlctl; + edev->shutdown = iwlshutdown; edev->promiscuous = iwlpromiscuous; edev->multicast = nil; edev->mbps = 10; |