I am currently working on a project that uses a Marvell 8686 chip and Libertas driver to control WiFi (kernel 2.6.39). My hardware is power sensitive, and I need to turn deep sleep on. The Libertas README file states that I can use "iwconfig wlan0 power period 0" to enable deep sleep mode. In order for this command to work properly, I had to install a more recent version of the Wireless Tools (v30 pre9). However, I am still getting an error:<br>
<br>
        
        
        
        <style type="text/css">p { margin-bottom: 0.08in; }</style>
<p style="margin-bottom: 0in;">$ iwconfig
wlan2 power period 0</p>
<p style="margin-bottom: 0in;">Error for wireless request “Set Power
Management” (8B2C) :</p>
<p style="margin-bottom: 0in;">         SET failed on device wlan2 ; Operation
not supported.</p>
<br>I went through the mailing list archives and saw that you guys were saying the iwconfig power commands would not work:<br><pre><br>"Bing Zhao <br><br><i>Tue Jul 19 22:33:23 EDT 2011</i><br><br>Hi Daniel,<br><br>
><i> > To enable deep sleep mode:<br></i>><i> > iwconfig wlan0 power period 0<br></i>><i> ><br></i>><i> > To enable auto deep sleep mode with idle time period set to 5 seconds:<br></i>><i> > iwconfig wlan0 power period 5<br>
</i>><i> ><br></i>><i> > To disable deep sleep/auto deep sleep mode:<br></i>><i> > iwconfig wlan0 power period -1<br></i>><i> <br></i>><i> Paul pointed out that indeed, in old kernels, this functionality was<br>
</i>><i> hooked up to the power wireless extension.<br></i>><i> <br></i>><i> In recent kernels, this is not the case - its not hooked up to<br></i>><i> anything. The commands you write above will fail.<br></i><br>
Yeah. I didn't know that the entire wext has been removed from libertas.<br><br>Anyway, for users who need this feature we can add a module parameter to enable it with the patch below. Please let me know what you think.<br>
<br>Thanks,<br>Bing"</pre>
<br>After discussing the situation, it sounded like you were looking into using the cfg80211 API for power options. <br><br>What is the current method I can use to turn deep sleep on and off?<br><br>Thanks,<br>Samuel<br>
<br>