Lines Matching refs:wlan

1427 		struct net80211_wlan *wlan;  in net80211_probe_step()  local
1470 list_for_each_entry ( wlan, ctx->beacons, list ) { in net80211_probe_step()
1471 if ( strcmp ( wlan->essid, ssid ) != 0 ) in net80211_probe_step()
1474 if ( signal < wlan->signal ) { in net80211_probe_step()
1485 wlan = zalloc ( sizeof ( *wlan ) ); in net80211_probe_step()
1486 strcpy ( wlan->essid, ssid ); in net80211_probe_step()
1487 list_add_tail ( &wlan->list, ctx->beacons ); in net80211_probe_step()
1492 memcpy ( wlan->bssid, hdr->addr3, ETH_ALEN ); in net80211_probe_step()
1493 wlan->signal = signal; in net80211_probe_step()
1494 wlan->channel = dev->channels[dev->channel].channel_nr; in net80211_probe_step()
1501 free_iob ( wlan->beacon ); in net80211_probe_step()
1502 wlan->beacon = alloc_iob ( iob_len ( iob ) ); in net80211_probe_step()
1503 memcpy ( iob_put ( wlan->beacon, iob_len ( iob ) ), in net80211_probe_step()
1506 if ( ( rc = sec80211_detect ( wlan->beacon, &wlan->handshaking, in net80211_probe_step()
1507 &wlan->crypto ) ) == -ENOTSUP ) { in net80211_probe_step()
1514 dev, wlan->essid ); in net80211_probe_step()
1515 wlan->handshaking = NET80211_SECPROT_UNKNOWN; in net80211_probe_step()
1516 wlan->crypto = NET80211_CRYPT_UNKNOWN; in net80211_probe_step()
1518 wlan->handshaking = NET80211_SECPROT_NONE; in net80211_probe_step()
1519 wlan->crypto = NET80211_CRYPT_NONE; in net80211_probe_step()
1524 "settings: %s\n", dev, wlan->essid, in net80211_probe_step()
1531 dev, wlan->essid, eth_ntoa ( wlan->bssid ) ); in net80211_probe_step()
1554 struct net80211_wlan *best = NULL, *wlan; in net80211_probe_finish_best() local
1559 list_for_each_entry ( wlan, ctx->beacons, list ) { in net80211_probe_finish_best()
1560 if ( ! best || best->signal < wlan->signal ) in net80211_probe_finish_best()
1561 best = wlan; in net80211_probe_finish_best()
1616 void net80211_free_wlan ( struct net80211_wlan *wlan ) in net80211_free_wlan() argument
1618 if ( wlan ) { in net80211_free_wlan()
1619 free_iob ( wlan->beacon ); in net80211_free_wlan()
1620 free ( wlan ); in net80211_free_wlan()
1632 struct net80211_wlan *wlan, *tmp; in net80211_free_wlanlist() local
1637 list_for_each_entry_safe ( wlan, tmp, list, list ) { in net80211_free_wlanlist()
1638 list_del ( &wlan->list ); in net80211_free_wlanlist()
1639 net80211_free_wlan ( wlan ); in net80211_free_wlanlist()
2119 struct net80211_wlan *wlan ) in net80211_prepare_assoc() argument
2121 struct ieee80211_frame *hdr = wlan->beacon->data; in net80211_prepare_assoc()
2130 memcpy ( dev->bssid, wlan->bssid, ETH_ALEN ); in net80211_prepare_assoc()
2131 strcpy ( dev->essid, wlan->essid ); in net80211_prepare_assoc()
2142 net80211_change_channel ( dev, wlan->channel ); in net80211_prepare_assoc()
2149 wlan->beacon->tail ); in net80211_prepare_assoc()
2169 if ( handshaker->protocol == wlan->handshaking ) { in net80211_prepare_assoc()
2183 if ( ( wlan->handshaking != NET80211_SECPROT_NONE ) && in net80211_prepare_assoc()
2186 dev, wlan->handshaking ); in net80211_prepare_assoc()
2187 return -( ENOTSUP | ( wlan->handshaking << 8 ) ); in net80211_prepare_assoc()
2214 struct net80211_wlan *wlan, int method ) in net80211_send_auth() argument
2226 return net80211_tx_mgmt ( dev, IEEE80211_STYPE_AUTH, wlan->bssid, iob ); in net80211_send_auth()
2301 struct net80211_wlan *wlan ) in net80211_send_assoc() argument
2317 if ( wlan->crypto ) in net80211_send_assoc()
2330 wlan->bssid, iob ); in net80211_send_assoc()