ndis driver doesn't report Ad-Hoc network

Vincent Maurin vincent.maurin at smartcom.com
Tue Sep 26 10:15:25 EDT 2006


Hi,

In wpa_driver_ndis_get_scan results (driver_ndis.c), the results[i].caps 
is not updated with infrastructure/ad-hoc mode informations.
Is it a mistake, or it is voluntary ?
I have modified this function like this :
.....
if (bss->Privacy)
    results[i].caps |= IEEE80211_CAP_PRIVACY;
/* Check infra mode */
if (bss->InfrastructureMode == Ndis802_11IBSS)
{
    results[i].caps |= IEEE80211_CAP_IBSS;
}
else
{
    /*assuming is infrastructure */
    results[i].caps |= IEEE80211_CAP_ESS;
}
results[i].level = (int) bss->Rssi;
.....      

it works, but is it the good solution ?

Regards,

Vincent.





More information about the HostAP mailing list