ref: 6ffe4e58b3829a982d37e293f5510103f587bae8
parent: 42045720006a174506eb7187df0d0449270cad0e
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sat Feb 9 19:14:17 EST 2013
etheriwl: check RF-Kill switch on attach
--- a/sys/src/9/pc/etheriwl.c
+++ b/sys/src/9/pc/etheriwl.c
@@ -1309,6 +1309,11 @@
nexterror();
}
if(ctlr->attached == 0){+ if((csr32r(ctlr, Gpc) & RfKill) == 0){+ print("#l%d: wifi disabled by switch\n", edev->ctlrno);+ error("wifi disabled by switch");+ }
+
if(ctlr->wifi == nil)
ctlr->wifi = wifiattach(edev, transmit);
--
⑨