return 0;
}
+void wext_close(void)
+{
+ wext_scan_close();
+
+ if( ioctl_socket > -1 )
+ close(ioctl_socket);
+}
+
int wext_get_mode(const char *ifname, char *buf)
{
struct iwreq wrq;
for(i = 0; i < range.num_frequency; i++)
{
- entry.mhz = wext_freq2mhz(&range.freq[i]);
- entry.channel = range.freq[i].i;
+ entry.mhz = wext_freq2mhz(&range.freq[i]);
+ entry.channel = range.freq[i].i;
+ entry.restricted = 0;
memcpy(&buf[bl], &entry, sizeof(struct iwinfo_freqlist_entry));
bl += sizeof(struct iwinfo_freqlist_entry);