On Tue, 2009-08-25 at 06:51 +0000, Hin-Tak Leung wrote: > dmesg and rfkill/state corresponds exactly to what the sliding switch > does (in the on position, dmesg says it is on, states says 2, in the > off position, dmesg says it is off, state says 1). NM basically > ignores rfkill/state, and just if'up the device whenever it notices > the device has gone down. NM can't ignore the state since cfg80211 enforces it. Can you please use rfkill (http://git.sipsolutions.net/rfkill.git) to see what's going on? Like print out events while you slide the button and use NM etc. One thing that would be possible -- does your poll callback work while the interface is down? Try to tell NM to turn off the wireless network, and see whether the state ever changes with your slider. johannes
Attachment:
signature.asc
Description: This is a digitally signed message part