Lines Matching refs:network
47 struct libipw_network *network, in libipw_translate_scan() argument
60 memcpy(iwe.u.ap_addr.sa_data, network->bssid, ETH_ALEN); in libipw_translate_scan()
68 iwe.u.data.length = min(network->ssid_len, (u8) 32); in libipw_translate_scan()
70 &iwe, network->ssid); in libipw_translate_scan()
75 libipw_modes[network->mode]); in libipw_translate_scan()
80 if (network->capability & (WLAN_CAPABILITY_ESS | WLAN_CAPABILITY_IBSS)) { in libipw_translate_scan()
81 if (network->capability & WLAN_CAPABILITY_ESS) in libipw_translate_scan()
93 iwe.u.freq.m = libipw_channel_to_freq(ieee, network->channel); in libipw_translate_scan()
100 if (network->capability & WLAN_CAPABILITY_PRIVACY) in libipw_translate_scan()
106 &iwe, network->ssid); in libipw_translate_scan()
116 for (i = 0, j = 0; i < network->rates_len;) { in libipw_translate_scan()
117 if (j < network->rates_ex_len && in libipw_translate_scan()
118 ((network->rates_ex[j] & 0x7F) < in libipw_translate_scan()
119 (network->rates[i] & 0x7F))) in libipw_translate_scan()
120 rate = network->rates_ex[j++] & 0x7F; in libipw_translate_scan()
122 rate = network->rates[i++] & 0x7F; in libipw_translate_scan()
129 for (; j < network->rates_ex_len; j++) { in libipw_translate_scan()
130 rate = network->rates_ex[j] & 0x7F; in libipw_translate_scan()
146 if (!(network->stats.mask & LIBIPW_STATMASK_RSSI)) { in libipw_translate_scan()
158 (ieee->perfect_rssi - network->stats.rssi) * in libipw_translate_scan()
161 network->stats.rssi))) / in libipw_translate_scan()
171 if (!(network->stats.mask & LIBIPW_STATMASK_NOISE)) { in libipw_translate_scan()
175 iwe.u.qual.noise = network->stats.noise; in libipw_translate_scan()
178 if (!(network->stats.mask & LIBIPW_STATMASK_SIGNAL)) { in libipw_translate_scan()
182 iwe.u.qual.level = network->stats.signal; in libipw_translate_scan()
195 if (network->wpa_ie_len) { in libipw_translate_scan()
197 memcpy(buf, network->wpa_ie, network->wpa_ie_len); in libipw_translate_scan()
199 iwe.u.data.length = network->wpa_ie_len; in libipw_translate_scan()
204 if (network->rsn_ie_len) { in libipw_translate_scan()
206 memcpy(buf, network->rsn_ie, network->rsn_ie_len); in libipw_translate_scan()
208 iwe.u.data.length = network->rsn_ie_len; in libipw_translate_scan()
218 elapsed_jiffies_msecs(network->last_scanned)); in libipw_translate_scan()
228 if (libipw_get_channel_flags(ieee, network->channel) & in libipw_translate_scan()
234 if (libipw_get_channel_flags(ieee, network->channel) & in libipw_translate_scan()
254 struct libipw_network *network; in libipw_wx_get_scan() local
266 list_for_each_entry(network, &ieee->network_list, list) { in libipw_wx_get_scan()
274 time_after(network->last_scanned + ieee->scan_age, jiffies)) in libipw_wx_get_scan()
275 ev = libipw_translate_scan(ieee, ev, stop, network, in libipw_wx_get_scan()
279 network->ssid_len, network->ssid, in libipw_wx_get_scan()
280 network->bssid, in libipw_wx_get_scan()
282 network->last_scanned)); in libipw_wx_get_scan()