Lines Matching refs:iwe

7301 	struct iw_event		iwe;		/* Temporary buffer */  in airo_translate_scan()  local
7309 iwe.cmd = SIOCGIWAP; in airo_translate_scan()
7310 iwe.u.ap_addr.sa_family = ARPHRD_ETHER; in airo_translate_scan()
7311 memcpy(iwe.u.ap_addr.sa_data, bss->bssid, ETH_ALEN); in airo_translate_scan()
7313 &iwe, IW_EV_ADDR_LEN); in airo_translate_scan()
7318 iwe.u.data.length = bss->ssidLen; in airo_translate_scan()
7319 if(iwe.u.data.length > 32) in airo_translate_scan()
7320 iwe.u.data.length = 32; in airo_translate_scan()
7321 iwe.cmd = SIOCGIWESSID; in airo_translate_scan()
7322 iwe.u.data.flags = 1; in airo_translate_scan()
7324 &iwe, bss->ssid); in airo_translate_scan()
7327 iwe.cmd = SIOCGIWMODE; in airo_translate_scan()
7331 iwe.u.mode = IW_MODE_MASTER; in airo_translate_scan()
7333 iwe.u.mode = IW_MODE_ADHOC; in airo_translate_scan()
7335 &iwe, IW_EV_UINT_LEN); in airo_translate_scan()
7339 iwe.cmd = SIOCGIWFREQ; in airo_translate_scan()
7340 iwe.u.freq.m = le16_to_cpu(bss->dsChannel); in airo_translate_scan()
7341 iwe.u.freq.m = ieee80211_dsss_chan_to_freq(iwe.u.freq.m) * 100000; in airo_translate_scan()
7342 iwe.u.freq.e = 1; in airo_translate_scan()
7344 &iwe, IW_EV_FREQ_LEN); in airo_translate_scan()
7349 iwe.cmd = IWEVQUAL; in airo_translate_scan()
7351 iwe.u.qual.level = 0x100 - dBm; in airo_translate_scan()
7352 iwe.u.qual.qual = airo_dbm_to_pct(ai->rssi, dBm); in airo_translate_scan()
7353 iwe.u.qual.updated = IW_QUAL_QUAL_UPDATED in airo_translate_scan()
7357 iwe.u.qual.level = (dBm + 321) / 2; in airo_translate_scan()
7358 iwe.u.qual.qual = 0; in airo_translate_scan()
7359 iwe.u.qual.updated = IW_QUAL_QUAL_INVALID in airo_translate_scan()
7363 iwe.u.qual.noise = ai->wstats.qual.noise; in airo_translate_scan()
7365 &iwe, IW_EV_QUAL_LEN); in airo_translate_scan()
7368 iwe.cmd = SIOCGIWENCODE; in airo_translate_scan()
7370 iwe.u.data.flags = IW_ENCODE_ENABLED | IW_ENCODE_NOKEY; in airo_translate_scan()
7372 iwe.u.data.flags = IW_ENCODE_DISABLED; in airo_translate_scan()
7373 iwe.u.data.length = 0; in airo_translate_scan()
7375 &iwe, bss->ssid); in airo_translate_scan()
7381 iwe.cmd = SIOCGIWRATE; in airo_translate_scan()
7383 iwe.u.bitrate.fixed = iwe.u.bitrate.disabled = 0; in airo_translate_scan()
7390 iwe.u.bitrate.value = ((bss->rates[i] & 0x7f) * 500000); in airo_translate_scan()
7394 &iwe, IW_EV_PARAM_LEN); in airo_translate_scan()
7403 iwe.cmd = IWEVCUSTOM; in airo_translate_scan()
7405 iwe.u.data.length = strlen(buf); in airo_translate_scan()
7407 &iwe, buf); in airo_translate_scan()
7437 iwe.cmd = IWEVGENIE; in airo_translate_scan()
7439 iwe.u.data.length = min(ie[1] + 2, in airo_translate_scan()
7443 end_buf, &iwe, ie); in airo_translate_scan()
7448 iwe.cmd = IWEVGENIE; in airo_translate_scan()
7450 iwe.u.data.length = min(ie[1] + 2, 64); in airo_translate_scan()
7453 &iwe, ie); in airo_translate_scan()