Lines Matching refs:BSSinfo
548 } BSSinfo[MAX_BSS_ENTRIES]; member
2357 memcpy(iwe.u.ap_addr.sa_data, priv->BSSinfo[i].BSSID, ETH_ALEN); in atmel_get_scan()
2362 iwe.u.data.length = priv->BSSinfo[i].SSIDsize; in atmel_get_scan()
2369 &iwe, priv->BSSinfo[i].SSID); in atmel_get_scan()
2372 iwe.u.mode = priv->BSSinfo[i].BSStype; in atmel_get_scan()
2378 iwe.u.freq.m = priv->BSSinfo[i].channel; in atmel_get_scan()
2386 iwe.u.qual.level = priv->BSSinfo[i].RSSI; in atmel_get_scan()
2395 if (priv->BSSinfo[i].UsingWEP) in atmel_get_scan()
2512 if (memcmp(priv->BSSinfo[i].BSSID, awrq->sa_data, 6) == 0) { in atmel_set_wap()
2513 if (!priv->wep_is_on && priv->BSSinfo[i].UsingWEP) { in atmel_set_wap()
2515 } else if (priv->wep_is_on && !priv->BSSinfo[i].UsingWEP) { in atmel_set_wap()
2950 if (priv->operating_mode == priv->BSSinfo[i].BSStype && in retrieve_bss()
2951 ((!priv->wep_is_on && !priv->BSSinfo[i].UsingWEP) || in retrieve_bss()
2952 (priv->wep_is_on && priv->BSSinfo[i].UsingWEP)) && in retrieve_bss()
2953 !(priv->BSSinfo[i].channel & 0x80)) { in retrieve_bss()
2954 max_rssi = priv->BSSinfo[i].RSSI; in retrieve_bss()
2962 if (priv->SSID_size == priv->BSSinfo[i].SSIDsize && in retrieve_bss()
2963 memcmp(priv->SSID, priv->BSSinfo[i].SSID, priv->SSID_size) == 0 && in retrieve_bss()
2964 priv->operating_mode == priv->BSSinfo[i].BSStype && in retrieve_bss()
2965 atmel_validate_channel(priv, priv->BSSinfo[i].channel) == 0) { in retrieve_bss()
2966 if (priv->BSSinfo[i].RSSI >= max_rssi) { in retrieve_bss()
2967 max_rssi = priv->BSSinfo[i].RSSI; in retrieve_bss()
2984 if (memcmp(bss, priv->BSSinfo[i].BSSID, ETH_ALEN) == 0) in store_bss_info()
2995 memcpy(priv->BSSinfo[index].BSSID, bss, ETH_ALEN); in store_bss_info()
2996 priv->BSSinfo[index].RSSI = rssi; in store_bss_info()
2998 if (rssi > priv->BSSinfo[index].RSSI) in store_bss_info()
2999 priv->BSSinfo[index].RSSI = rssi; in store_bss_info()
3004 priv->BSSinfo[index].channel = channel; in store_bss_info()
3005 priv->BSSinfo[index].beacon_period = beacon_period; in store_bss_info()
3006 priv->BSSinfo[index].UsingWEP = capability & WLAN_CAPABILITY_PRIVACY; in store_bss_info()
3007 memcpy(priv->BSSinfo[index].SSID, ssid, ssid_len); in store_bss_info()
3008 priv->BSSinfo[index].SSIDsize = ssid_len; in store_bss_info()
3011 priv->BSSinfo[index].BSStype = IW_MODE_ADHOC; in store_bss_info()
3013 priv->BSSinfo[index].BSStype = IW_MODE_INFRA; in store_bss_info()
3015 priv->BSSinfo[index].preamble = capability & WLAN_CAPABILITY_SHORT_PREAMBLE ? in store_bss_info()
3090 priv->BSSinfo[(int)(priv->current_BSS)].channel |= 0x80; in authenticate()
3187 priv->BSSinfo[(int)(priv->current_BSS)].channel |= 0x80; in associate()
3196 struct bss_info *bss = &priv->BSSinfo[bss_index]; in atmel_join_bss()
3255 priv->BSSinfo[(int)(priv->current_BSS)].channel |= 0x80; in restart_search()