• Home
  • Raw
  • Download

Lines Matching refs:mlme

465 	for (i = 0; i < wpa_s->mlme.num_modes; i++) {  in ieee80211_sta_set_channel()
466 mode = &wpa_s->mlme.modes[i]; in ieee80211_sta_set_channel()
468 wpa_s->mlme.curr_rates = mode->rates; in ieee80211_sta_set_channel()
469 wpa_s->mlme.num_curr_rates = mode->num_rates; in ieee80211_sta_set_channel()
502 if (count == wpa_s->mlme.wmm_last_param_set) in ieee80211_sta_wmm_params()
504 wpa_s->mlme.wmm_last_param_set = count; in ieee80211_sta_wmm_params()
536 wpa_s->mlme.wmm_acm |= BIT(0) | BIT(3); in ieee80211_sta_wmm_params()
562 if (wpa_s->mlme.associated == assoc) in ieee80211_set_associated()
565 wpa_s->mlme.associated = assoc; in ieee80211_set_associated()
570 wpa_s->mlme.prev_bssid_set = 1; in ieee80211_set_associated()
571 os_memcpy(wpa_s->mlme.prev_bssid, wpa_s->bssid, ETH_ALEN); in ieee80211_set_associated()
572 data.assoc_info.req_ies = wpa_s->mlme.assocreq_ies; in ieee80211_set_associated()
573 data.assoc_info.req_ies_len = wpa_s->mlme.assocreq_ies_len; in ieee80211_set_associated()
574 data.assoc_info.resp_ies = wpa_s->mlme.assocresp_ies; in ieee80211_set_associated()
575 data.assoc_info.resp_ies_len = wpa_s->mlme.assocresp_ies_len; in ieee80211_set_associated()
580 os_get_time(&wpa_s->mlme.last_probe); in ieee80211_set_associated()
616 mgmt->u.auth.auth_alg = host_to_le16(wpa_s->mlme.auth_alg); in ieee80211_send_auth()
618 wpa_s->mlme.auth_transaction = transaction + 1; in ieee80211_send_auth()
640 wpa_s->mlme.auth_tries++; in ieee80211_authenticate()
641 if (wpa_s->mlme.auth_tries > IEEE80211_AUTH_MAX_TRIES) { in ieee80211_authenticate()
647 wpa_s->mlme.state = IEEE80211_AUTHENTICATE; in ieee80211_authenticate()
667 if (wpa_s->mlme.curr_rates == NULL) { in ieee80211_send_assoc()
672 buf = os_malloc(sizeof(*mgmt) + 200 + wpa_s->mlme.extra_ie_len + in ieee80211_send_assoc()
673 wpa_s->mlme.ssid_len); in ieee80211_send_assoc()
681 capab = wpa_s->mlme.capab; in ieee80211_send_assoc()
682 if (wpa_s->mlme.phymode == WPA_MODE_IEEE80211G) { in ieee80211_send_assoc()
702 if (wpa_s->mlme.prev_bssid_set) { in ieee80211_send_assoc()
709 wpa_s->mlme.prev_bssid, in ieee80211_send_assoc()
721 blen += 2 + wpa_s->mlme.ssid_len; in ieee80211_send_assoc()
723 *pos++ = wpa_s->mlme.ssid_len; in ieee80211_send_assoc()
724 os_memcpy(pos, wpa_s->mlme.ssid, wpa_s->mlme.ssid_len); in ieee80211_send_assoc()
726 len = wpa_s->mlme.num_curr_rates; in ieee80211_send_assoc()
734 int rate = wpa_s->mlme.curr_rates[i].rate; in ieee80211_send_assoc()
738 if (wpa_s->mlme.num_curr_rates > len) { in ieee80211_send_assoc()
740 blen += wpa_s->mlme.num_curr_rates - len + 2; in ieee80211_send_assoc()
742 *pos++ = wpa_s->mlme.num_curr_rates - len; in ieee80211_send_assoc()
743 for (i = len; i < wpa_s->mlme.num_curr_rates; i++) { in ieee80211_send_assoc()
744 int rate = wpa_s->mlme.curr_rates[i].rate; in ieee80211_send_assoc()
749 if (wpa_s->mlme.extra_ie) { in ieee80211_send_assoc()
751 blen += wpa_s->mlme.extra_ie_len; in ieee80211_send_assoc()
752 os_memcpy(pos, wpa_s->mlme.extra_ie, wpa_s->mlme.extra_ie_len); in ieee80211_send_assoc()
755 if (wmm && wpa_s->mlme.wmm_enabled) { in ieee80211_send_assoc()
769 os_free(wpa_s->mlme.assocreq_ies); in ieee80211_send_assoc()
770 wpa_s->mlme.assocreq_ies_len = (buf + blen) - ies; in ieee80211_send_assoc()
771 wpa_s->mlme.assocreq_ies = os_malloc(wpa_s->mlme.assocreq_ies_len); in ieee80211_send_assoc()
772 if (wpa_s->mlme.assocreq_ies) { in ieee80211_send_assoc()
773 os_memcpy(wpa_s->mlme.assocreq_ies, ies, in ieee80211_send_assoc()
774 wpa_s->mlme.assocreq_ies_len); in ieee80211_send_assoc()
843 if (wpa_s->mlme.mixed_cell || in ieee80211_privacy_mismatch()
844 wpa_s->mlme.key_mgmt != KEY_MGMT_NONE) in ieee80211_privacy_mismatch()
861 wpa_s->mlme.assoc_tries++; in ieee80211_associate()
862 if (wpa_s->mlme.assoc_tries > IEEE80211_ASSOC_MAX_TRIES) { in ieee80211_associate()
868 wpa_s->mlme.state = IEEE80211_ASSOCIATE; in ieee80211_associate()
893 wpa_s->mlme.state = IEEE80211_ASSOCIATED; in ieee80211_associated()
905 if (wpa_s->mlme.probereq_poll) { in ieee80211_associated()
914 wpa_s->mlme.scan_ssid, in ieee80211_associated()
915 wpa_s->mlme.scan_ssid_len); in ieee80211_associated()
916 wpa_s->mlme.probereq_poll = 1; in ieee80211_associated()
919 wpa_s->mlme.probereq_poll = 0; in ieee80211_associated()
920 if (time_after(jiffies, wpa_s->mlme.last_probe + in ieee80211_associated()
922 wpa_s->mlme.last_probe = jiffies; in ieee80211_associated()
924 wpa_s->mlme.ssid, in ieee80211_associated()
925 wpa_s->mlme.ssid_len); in ieee80211_associated()
986 for (i = 0; i < wpa_s->mlme.num_curr_rates; i++) { in ieee80211_send_probe_req()
987 struct wpa_rate_data *rate = &wpa_s->mlme.curr_rates[i]; in ieee80211_send_probe_req()
1027 wpa_s->mlme.authenticated = 1; in ieee80211_auth_completed()
1068 if (wpa_s->mlme.state != IEEE80211_AUTHENTICATE && !adhoc) { in ieee80211_rx_mgmt_auth()
1122 if (auth_alg != wpa_s->mlme.auth_alg || in ieee80211_rx_mgmt_auth()
1123 auth_transaction != wpa_s->mlme.auth_transaction) { in ieee80211_rx_mgmt_auth()
1132 "(auth_alg=%d code=%d)", wpa_s->mlme.auth_alg, in ieee80211_rx_mgmt_auth()
1139 if (wpa_s->mlme.auth_algs & IEEE80211_AUTH_ALG_OPEN) in ieee80211_rx_mgmt_auth()
1141 if (wpa_s->mlme.auth_algs & in ieee80211_rx_mgmt_auth()
1144 if (wpa_s->mlme.auth_algs & IEEE80211_AUTH_ALG_LEAP) in ieee80211_rx_mgmt_auth()
1146 if (wpa_s->mlme.auth_alg == WLAN_AUTH_OPEN) in ieee80211_rx_mgmt_auth()
1148 else if (wpa_s->mlme.auth_alg == WLAN_AUTH_SHARED_KEY) in ieee80211_rx_mgmt_auth()
1156 if (algs[pos] == wpa_s->mlme.auth_alg || in ieee80211_rx_mgmt_auth()
1162 wpa_s->mlme.auth_alg = algs[pos]; in ieee80211_rx_mgmt_auth()
1165 wpa_s->mlme.auth_alg); in ieee80211_rx_mgmt_auth()
1172 switch (wpa_s->mlme.auth_alg) { in ieee80211_rx_mgmt_auth()
1178 if (wpa_s->mlme.auth_transaction == 4) in ieee80211_rx_mgmt_auth()
1215 if (wpa_s->mlme.authenticated) in ieee80211_rx_mgmt_deauth()
1218 if (wpa_s->mlme.state == IEEE80211_AUTHENTICATE || in ieee80211_rx_mgmt_deauth()
1219 wpa_s->mlme.state == IEEE80211_ASSOCIATE || in ieee80211_rx_mgmt_deauth()
1220 wpa_s->mlme.state == IEEE80211_ASSOCIATED) { in ieee80211_rx_mgmt_deauth()
1221 wpa_s->mlme.state = IEEE80211_AUTHENTICATE; in ieee80211_rx_mgmt_deauth()
1227 wpa_s->mlme.authenticated = 0; in ieee80211_rx_mgmt_deauth()
1258 if (wpa_s->mlme.associated) in ieee80211_rx_mgmt_disassoc()
1261 if (wpa_s->mlme.state == IEEE80211_ASSOCIATED) { in ieee80211_rx_mgmt_disassoc()
1262 wpa_s->mlme.state = IEEE80211_ASSOCIATE; in ieee80211_rx_mgmt_disassoc()
1286 if (wpa_s->mlme.state != IEEE80211_ASSOCIATE) { in ieee80211_rx_mgmt_assoc_resp()
1340 wpa_s->mlme.aid = aid; in ieee80211_rx_mgmt_assoc_resp()
1341 wpa_s->mlme.ap_capab = capab_info; in ieee80211_rx_mgmt_assoc_resp()
1343 os_free(wpa_s->mlme.assocresp_ies); in ieee80211_rx_mgmt_assoc_resp()
1344 wpa_s->mlme.assocresp_ies_len = len - (pos - (u8 *) mgmt); in ieee80211_rx_mgmt_assoc_resp()
1345 wpa_s->mlme.assocresp_ies = os_malloc(wpa_s->mlme.assocresp_ies_len); in ieee80211_rx_mgmt_assoc_resp()
1346 if (wpa_s->mlme.assocresp_ies) { in ieee80211_rx_mgmt_assoc_resp()
1347 os_memcpy(wpa_s->mlme.assocresp_ies, pos, in ieee80211_rx_mgmt_assoc_resp()
1348 wpa_s->mlme.assocresp_ies_len); in ieee80211_rx_mgmt_assoc_resp()
1369 if (wpa_drv_set_ssid(wpa_s, wpa_s->mlme.ssid, wpa_s->mlme.ssid_len) < in ieee80211_rx_mgmt_assoc_resp()
1386 if (elems.wmm_param && wpa_s->mlme.wmm_enabled) { in ieee80211_rx_mgmt_assoc_resp()
1401 bss->hnext = wpa_s->mlme.sta_bss_hash[STA_HASH(bss->bssid)]; in __ieee80211_bss_hash_add()
1402 wpa_s->mlme.sta_bss_hash[STA_HASH(bss->bssid)] = bss; in __ieee80211_bss_hash_add()
1411 b = wpa_s->mlme.sta_bss_hash[STA_HASH(bss->bssid)]; in __ieee80211_bss_hash_del()
1415 wpa_s->mlme.sta_bss_hash[STA_HASH(bss->bssid)] in __ieee80211_bss_hash_del()
1439 bss->next = wpa_s->mlme.sta_bss_list; in ieee80211_bss_add()
1440 wpa_s->mlme.sta_bss_list = bss; in ieee80211_bss_add()
1451 bss = wpa_s->mlme.sta_bss_hash[STA_HASH(bssid)]; in ieee80211_bss_get()
1476 bss = wpa_s->mlme.sta_bss_list; in ieee80211_bss_list_deinit()
1477 wpa_s->mlme.sta_bss_list = NULL; in ieee80211_bss_list_deinit()
1555 oper_mode = wpa_s->mlme.sta_scanning ? in ieee80211_bss_info()
1590 sta->supp_rates = wpa_s->mlme.supp_rates_bits; in ieee80211_bss_info()
1707 bss->hw_mode = wpa_s->mlme.phymode; in ieee80211_bss_info()
1709 bss->freq = wpa_s->mlme.freq; in ieee80211_bss_info()
1710 if (channel != wpa_s->mlme.channel && in ieee80211_bss_info()
1711 (wpa_s->mlme.phymode == WPA_MODE_IEEE80211G || in ieee80211_bss_info()
1712 wpa_s->mlme.phymode == WPA_MODE_IEEE80211B) && in ieee80211_bss_info()
1750 if (!wpa_s->mlme.associated || in ieee80211_rx_mgmt_beacon()
1769 if (use_protection != !!wpa_s->mlme.use_protection) { in ieee80211_rx_mgmt_beacon()
1774 wpa_s->mlme.use_protection = use_protection ? 1 : 0; in ieee80211_rx_mgmt_beacon()
1775 wpa_s->mlme.cts_protect_erp_frames = use_protection; in ieee80211_rx_mgmt_beacon()
1778 if (elems.wmm_param && wpa_s->mlme.wmm_enabled) { in ieee80211_rx_mgmt_beacon()
1799 if (!adhoc || wpa_s->mlme.state != IEEE80211_IBSS_JOINED || in ieee80211_rx_mgmt_probe_req()
1800 len < 24 + 2 || wpa_s->mlme.probe_resp == NULL) in ieee80211_rx_mgmt_probe_req()
1833 (pos[1] != wpa_s->mlme.ssid_len || in ieee80211_rx_mgmt_probe_req()
1834 os_memcmp(pos + 2, wpa_s->mlme.ssid, wpa_s->mlme.ssid_len) != 0)) in ieee80211_rx_mgmt_probe_req()
1842 skb = skb_copy(wpa_s->mlme.probe_resp, GFP_ATOMIC); in ieee80211_rx_mgmt_probe_req()
1973 ieee80211_sta_req_scan(wpa_s, wpa_s->mlme.ssid, wpa_s->mlme.ssid_len); in ieee80211_sta_merge_ibss()
1981 switch (wpa_s->mlme.state) { in ieee80211_sta_timer()
2001 wpa_s->mlme.state); in ieee80211_sta_timer()
2028 wpa_s->mlme.wmm_last_param_set = -1; /* allow any WMM update */ in ieee80211_sta_new_auth()
2031 if (wpa_s->mlme.auth_algs & IEEE80211_AUTH_ALG_OPEN) in ieee80211_sta_new_auth()
2032 wpa_s->mlme.auth_alg = WLAN_AUTH_OPEN; in ieee80211_sta_new_auth()
2033 else if (wpa_s->mlme.auth_algs & IEEE80211_AUTH_ALG_SHARED_KEY) in ieee80211_sta_new_auth()
2034 wpa_s->mlme.auth_alg = WLAN_AUTH_SHARED_KEY; in ieee80211_sta_new_auth()
2035 else if (wpa_s->mlme.auth_algs & IEEE80211_AUTH_ALG_LEAP) in ieee80211_sta_new_auth()
2036 wpa_s->mlme.auth_alg = WLAN_AUTH_LEAP; in ieee80211_sta_new_auth()
2038 wpa_s->mlme.auth_alg = WLAN_AUTH_OPEN; in ieee80211_sta_new_auth()
2040 wpa_s->mlme.auth_alg); in ieee80211_sta_new_auth()
2041 wpa_s->mlme.auth_transaction = -1; in ieee80211_sta_new_auth()
2042 wpa_s->mlme.auth_tries = wpa_s->mlme.assoc_tries = 0; in ieee80211_sta_new_auth()
2141 len += 2 + wpa_s->mlme.ssid_len; in ieee80211_sta_join_ibss()
2143 *pos++ = wpa_s->mlme.ssid_len; in ieee80211_sta_join_ibss()
2144 os_memcpy(pos, wpa_s->mlme.ssid, wpa_s->mlme.ssid_len); in ieee80211_sta_join_ibss()
2189 control.tx_rate = (wpa_s->mlme.short_preamble && in ieee80211_sta_join_ibss()
2200 wpa_s->mlme.probe_resp = skb_copy(skb, GFP_ATOMIC); in ieee80211_sta_join_ibss()
2201 if (wpa_s->mlme.probe_resp) { in ieee80211_sta_join_ibss()
2203 wpa_s->mlme.probe_resp->data; in ieee80211_sta_join_ibss()
2228 wpa_s->mlme.supp_rates_bits = rates; in ieee80211_sta_join_ibss()
2239 wpa_s->mlme.state = IEEE80211_IBSS_JOINED; in ieee80211_sta_join_ibss()
2314 if (wpa_s->mlme.ssid_len == 0) in ieee80211_sta_find_ibss()
2322 for (bss = wpa_s->mlme.sta_bss_list; bss; bss = bss->next) { in ieee80211_sta_find_ibss()
2323 if (wpa_s->mlme.ssid_len != bss->ssid_len || in ieee80211_sta_find_ibss()
2324 os_memcmp(wpa_s->mlme.ssid, bss->ssid, bss->ssid_len) != 0 in ieee80211_sta_find_ibss()
2356 if (wpa_s->mlme.state == IEEE80211_IBSS_JOINED && in ieee80211_sta_find_ibss()
2360 } else if (time_after(jiffies, wpa_s->mlme.last_scan_completed + in ieee80211_sta_find_ibss()
2364 return ieee80211_sta_req_scan(wpa_s->mlme.ssid, in ieee80211_sta_find_ibss()
2365 wpa_s->mlme.ssid_len); in ieee80211_sta_find_ibss()
2366 } else if (wpa_s->mlme.state != IEEE80211_IBSS_JOINED) { in ieee80211_sta_find_ibss()
2369 if (time_after(jiffies, wpa_s->mlme.ibss_join_req + in ieee80211_sta_find_ibss()
2371 if (wpa_s->mlme.create_ibss && in ieee80211_sta_find_ibss()
2374 if (wpa_s->mlme.create_ibss) { in ieee80211_sta_find_ibss()
2387 wpa_s->mlme.state = IEEE80211_IBSS_SEARCH; in ieee80211_sta_find_ibss()
2400 os_memcpy(ssid, wpa_s->mlme.ssid, wpa_s->mlme.ssid_len); in ieee80211_sta_get_ssid()
2401 *len = wpa_s->mlme.ssid_len; in ieee80211_sta_get_ssid()
2411 wpa_s->mlme.bssid_set = 0; in ieee80211_sta_associate()
2412 wpa_s->mlme.freq = params->freq; in ieee80211_sta_associate()
2417 wpa_s->mlme.bssid_set = 1; in ieee80211_sta_associate()
2420 wpa_s->mlme.phymode = bss->hw_mode; in ieee80211_sta_associate()
2421 wpa_s->mlme.channel = bss->channel; in ieee80211_sta_associate()
2422 wpa_s->mlme.freq = bss->freq; in ieee80211_sta_associate()
2453 if (wpa_s->mlme.ssid_len != params->ssid_len || in ieee80211_sta_associate()
2454 os_memcmp(wpa_s->mlme.ssid, params->ssid, params->ssid_len) != 0) in ieee80211_sta_associate()
2455 wpa_s->mlme.prev_bssid_set = 0; in ieee80211_sta_associate()
2456 os_memcpy(wpa_s->mlme.ssid, params->ssid, params->ssid_len); in ieee80211_sta_associate()
2457 os_memset(wpa_s->mlme.ssid + params->ssid_len, 0, in ieee80211_sta_associate()
2459 wpa_s->mlme.ssid_len = params->ssid_len; in ieee80211_sta_associate()
2460 wpa_s->mlme.ssid_set = 1; in ieee80211_sta_associate()
2462 os_free(wpa_s->mlme.extra_ie); in ieee80211_sta_associate()
2464 wpa_s->mlme.extra_ie = NULL; in ieee80211_sta_associate()
2465 wpa_s->mlme.extra_ie_len = 0; in ieee80211_sta_associate()
2468 wpa_s->mlme.extra_ie = os_malloc(params->wpa_ie_len); in ieee80211_sta_associate()
2469 if (wpa_s->mlme.extra_ie == NULL) { in ieee80211_sta_associate()
2470 wpa_s->mlme.extra_ie_len = 0; in ieee80211_sta_associate()
2473 os_memcpy(wpa_s->mlme.extra_ie, params->wpa_ie, params->wpa_ie_len); in ieee80211_sta_associate()
2474 wpa_s->mlme.extra_ie_len = params->wpa_ie_len; in ieee80211_sta_associate()
2476 wpa_s->mlme.key_mgmt = params->key_mgmt_suite; in ieee80211_sta_associate()
2478 ieee80211_sta_set_channel(wpa_s, wpa_s->mlme.phymode, in ieee80211_sta_associate()
2479 wpa_s->mlme.channel, wpa_s->mlme.freq); in ieee80211_sta_associate()
2481 if (params->mode == 1 && !wpa_s->mlme.bssid_set) { in ieee80211_sta_associate()
2482 os_get_time(&wpa_s->mlme.ibss_join_req); in ieee80211_sta_associate()
2483 wpa_s->mlme.state = IEEE80211_IBSS_SEARCH; in ieee80211_sta_associate()
2487 if (wpa_s->mlme.bssid_set) in ieee80211_sta_associate()
2496 wpa_s->mlme.scan_oper_channel = wpa_s->mlme.channel; in ieee80211_sta_save_oper_chan()
2497 wpa_s->mlme.scan_oper_freq = wpa_s->mlme.freq; in ieee80211_sta_save_oper_chan()
2498 wpa_s->mlme.scan_oper_phymode = wpa_s->mlme.phymode; in ieee80211_sta_save_oper_chan()
2504 wpa_s->mlme.channel = wpa_s->mlme.scan_oper_channel; in ieee80211_sta_restore_oper_chan()
2505 wpa_s->mlme.freq = wpa_s->mlme.scan_oper_freq; in ieee80211_sta_restore_oper_chan()
2506 wpa_s->mlme.phymode = wpa_s->mlme.scan_oper_phymode; in ieee80211_sta_restore_oper_chan()
2507 if (wpa_s->mlme.freq == 0) in ieee80211_sta_restore_oper_chan()
2509 return ieee80211_sta_set_channel(wpa_s, wpa_s->mlme.phymode, in ieee80211_sta_restore_oper_chan()
2510 wpa_s->mlme.channel, in ieee80211_sta_restore_oper_chan()
2511 wpa_s->mlme.freq); in ieee80211_sta_restore_oper_chan()
2520 for (m = 0; m < wpa_s->mlme.num_modes; m++) { in ieee80211_active_scan()
2521 struct wpa_hw_modes *mode = &wpa_s->mlme.modes[m]; in ieee80211_active_scan()
2522 if ((int) mode->mode != (int) wpa_s->mlme.phymode) in ieee80211_active_scan()
2527 chan->chan == wpa_s->mlme.channel) { in ieee80211_active_scan()
2549 if (!wpa_s->mlme.sta_scanning || wpa_s->mlme.modes == NULL) in ieee80211_sta_scan_timer()
2554 switch (wpa_s->mlme.scan_state) { in ieee80211_sta_scan_timer()
2556 mode = &wpa_s->mlme.modes[wpa_s->mlme.scan_hw_mode_idx]; in ieee80211_sta_scan_timer()
2557 if (wpa_s->mlme.scan_hw_mode_idx >= in ieee80211_sta_scan_timer()
2558 (int) wpa_s->mlme.num_modes || in ieee80211_sta_scan_timer()
2559 (wpa_s->mlme.scan_hw_mode_idx + 1 == in ieee80211_sta_scan_timer()
2560 (int) wpa_s->mlme.num_modes in ieee80211_sta_scan_timer()
2561 && wpa_s->mlme.scan_channel_idx >= mode->num_channels)) { in ieee80211_sta_scan_timer()
2568 wpa_s->mlme.sta_scanning = 0; in ieee80211_sta_scan_timer()
2569 os_get_time(&wpa_s->mlme.last_scan_completed); in ieee80211_sta_scan_timer()
2572 if (!wpa_s->mlme.bssid_set || in ieee80211_sta_scan_timer()
2573 (wpa_s->mlme.state == in ieee80211_sta_scan_timer()
2580 skip = !(wpa_s->mlme.hw_modes & (1 << mode->mode)); in ieee80211_sta_scan_timer()
2581 chan = &mode->channels[wpa_s->mlme.scan_channel_idx]; in ieee80211_sta_scan_timer()
2584 (wpa_s->mlme.hw_modes & (1 << WPA_MODE_IEEE80211G) && in ieee80211_sta_scan_timer()
2586 wpa_s->mlme.scan_skip_11b)) in ieee80211_sta_scan_timer()
2594 wpa_s->mlme.channel = chan->chan; in ieee80211_sta_scan_timer()
2595 wpa_s->mlme.freq = chan->freq; in ieee80211_sta_scan_timer()
2596 wpa_s->mlme.phymode = mode->mode; in ieee80211_sta_scan_timer()
2607 wpa_s->mlme.scan_channel_idx++; in ieee80211_sta_scan_timer()
2608 if (wpa_s->mlme.scan_channel_idx >= in ieee80211_sta_scan_timer()
2609 wpa_s->mlme.modes[wpa_s->mlme.scan_hw_mode_idx]. in ieee80211_sta_scan_timer()
2611 wpa_s->mlme.scan_hw_mode_idx++; in ieee80211_sta_scan_timer()
2612 wpa_s->mlme.scan_channel_idx = 0; in ieee80211_sta_scan_timer()
2621 wpa_s->mlme.scan_state = SCAN_SEND_PROBE; in ieee80211_sta_scan_timer()
2626 wpa_s->mlme.scan_ssid, in ieee80211_sta_scan_timer()
2627 wpa_s->mlme.scan_ssid_len); in ieee80211_sta_scan_timer()
2632 wpa_s->mlme.scan_state = SCAN_SET_CHANNEL; in ieee80211_sta_scan_timer()
2667 if (wpa_s->mlme.sta_scanning) in ieee80211_sta_req_scan()
2674 wpa_s->mlme.sta_scanning = 1; in ieee80211_sta_req_scan()
2678 wpa_s->mlme.scan_ssid_len = ssid_len; in ieee80211_sta_req_scan()
2679 os_memcpy(wpa_s->mlme.scan_ssid, ssid, ssid_len); in ieee80211_sta_req_scan()
2681 wpa_s->mlme.scan_ssid_len = 0; in ieee80211_sta_req_scan()
2682 wpa_s->mlme.scan_skip_11b = 1; /* FIX: clear this is 11g is not in ieee80211_sta_req_scan()
2684 wpa_s->mlme.scan_state = SCAN_SET_CHANNEL; in ieee80211_sta_req_scan()
2685 wpa_s->mlme.scan_hw_mode_idx = 0; in ieee80211_sta_req_scan()
2686 wpa_s->mlme.scan_channel_idx = 0; in ieee80211_sta_req_scan()
2702 for (bss = wpa_s->mlme.sta_bss_list; bss; bss = bss->next) { in ieee80211_sta_get_scan_results()
2771 sta->supp_rates = wpa_s->mlme.supp_rates_bits;
2794 if (!wpa_s->mlme.associated) in ieee80211_sta_disassociate()
2812 if (wpa_s->mlme.sta_scanning) { in ieee80211_sta_rx()
2865 wpa_s->mlme.modes = wpa_drv_get_hw_feature_data(wpa_s, &num_modes, in ieee80211_sta_init()
2867 if (wpa_s->mlme.modes == NULL) { in ieee80211_sta_init()
2873 wpa_s->mlme.num_modes = num_modes; in ieee80211_sta_init()
2875 wpa_s->mlme.hw_modes = 1 << WPA_MODE_IEEE80211A; in ieee80211_sta_init()
2876 wpa_s->mlme.hw_modes |= 1 << WPA_MODE_IEEE80211B; in ieee80211_sta_init()
2877 wpa_s->mlme.hw_modes |= 1 << WPA_MODE_IEEE80211G; in ieee80211_sta_init()
2887 os_free(wpa_s->mlme.extra_ie); in ieee80211_sta_deinit()
2888 wpa_s->mlme.extra_ie = NULL; in ieee80211_sta_deinit()
2889 os_free(wpa_s->mlme.assocreq_ies); in ieee80211_sta_deinit()
2890 wpa_s->mlme.assocreq_ies = NULL; in ieee80211_sta_deinit()
2891 os_free(wpa_s->mlme.assocresp_ies); in ieee80211_sta_deinit()
2892 wpa_s->mlme.assocresp_ies = NULL; in ieee80211_sta_deinit()
2894 ieee80211_sta_free_hw_features(wpa_s->mlme.modes, in ieee80211_sta_deinit()
2895 wpa_s->mlme.num_modes); in ieee80211_sta_deinit()