<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> </p>
<p>I was studying through hostap/supplicant version 1.0. I see that WPA_INTERFACE_DISABLED<a></a>, is one of the newer states added for handling the rfkill<a></a> operations on the drivers/devices.</p>
<p> </p>
<p>When, supplicant moves to WPA_INTERFACE_DISABLED<a></a>, operations or events - SCAN, RECONNECT and REASSOCIATE<a></a> are not handled and replied with error status. This is is<a></a> understandable when rfkill<a></a> indeed happens and the RF<a></a> and
thus the IP interface gets disabled.</p>
<p> </p>
<p>However, there can be scenarios where rfkill<a></a> is not forced and still a simple 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 ip<a></a> or
net down). This sends a link change notification to the supplicant which (in rtm_newlink<a></a> handling) moves the state to WPA_INTERFACE_DISABLED<a></a> as per the new state changes.</p>
<p> </p>
<p>Now, if the application<a></a> wanted to send a scan command to supplicant, then it would not be possible because the<a></a> supplicant would reject it.</p>
<p> </p>
<p>If the supplicant expects that the state should always be moved to WPA_INTERFACE_ENABLED<a></a> before SCAN, RECONNECT, REASSOSCIATE?<a></a> Wouldn't that mean, the 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> </p>
<p>I am a little confused. I hope some one can throw some light.</p>
<p> </p>
<p>Thanks in advance.</p>
<p> </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>