<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<p>Hi,</p>
<p>&nbsp;</p>
<p>I was studying through&nbsp;hostap/supplicant version 1.0. I see that WPA_INTERFACE_DISABLED<a></a>, is one of the newer states added for handling the&nbsp;rfkill<a></a> operations on the drivers/devices.</p>
<p>&nbsp;</p>
<p>When, supplicant moves to WPA_INTERFACE_DISABLED<a></a>, operations or events&nbsp;- SCAN, RECONNECT and&nbsp;REASSOCIATE<a></a> are not handled and replied with error status. This is&nbsp;is<a></a> understandable when&nbsp;rfkill<a></a> indeed happens and the&nbsp;RF<a></a> and
 thus the IP interface gets disabled.</p>
<p>&nbsp;</p>
<p>However, there can be scenarios where&nbsp;rfkill<a></a> is not forced and still a simple&nbsp;ip<a></a> or net down is called on the interface (for example having been disassociated and hence there is not possible data link etc applications can call a&nbsp;ip<a></a> or
 net down).&nbsp; This sends a link change notification to the supplicant which (in&nbsp;rtm_newlink<a></a> handling) moves the state to&nbsp;WPA_INTERFACE_DISABLED<a></a> as per the new state changes.</p>
<p>&nbsp;</p>
<p>Now, if the&nbsp;application<a></a> wanted to send a scan command to supplicant, then it would not be possible because the<a></a> supplicant would reject&nbsp;it.</p>
<p>&nbsp;</p>
<p>If the supplicant&nbsp;expects that the&nbsp;state should always&nbsp;be moved to&nbsp;WPA_INTERFACE_ENABLED<a></a> before SCAN, RECONNECT,&nbsp;REASSOSCIATE?<a></a>&nbsp;Wouldn't that mean, the&nbsp;ip<a></a> or net up needs to be done even if the net traffic cannot be started? Would not
 this mean providing a wrong status to the application?</p>
<p>&nbsp;</p>
<p>I&nbsp;am a little confused. I hope some one can throw some light.</p>
<p>&nbsp;</p>
<p>Thanks in advance.</p>
<p>&nbsp;</p>
<p>Best regards,</p>
<p>Madhvapathi Sriram</p>
</div>
<br><br>
<SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial, Helvetica, sans-serif">Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom<br>More information can be found at <a href=http://www.csr.com>www.csr.com</a>. Follow CSR on Twitter at <a href=http://twitter.com/CSR_PLC>http://twitter.com/CSR_PLC</a> and read our blog at <a href=http://www.csr.com/blog>www.csr.com/blog</a></SPAN>
</body>
</html>