Lines Matching refs:bssid
80 memcpy(mgmt->bssid, ifibss->bssid, ETH_ALEN); in ieee80211_ibss_build_presp()
215 const u8 *bssid, const int beacon_int, in __ieee80211_sta_join_ibss() argument
239 if (!ether_addr_equal(ifibss->bssid, bssid)) in __ieee80211_sta_join_ibss()
307 memcpy(ifibss->bssid, bssid, ETH_ALEN); in __ieee80211_sta_join_ibss()
381 cfg80211_ibss_joined(sdata->dev, ifibss->bssid, chan, GFP_KERNEL); in __ieee80211_sta_join_ibss()
459 __ieee80211_sta_join_ibss(sdata, cbss->bssid, in ieee80211_sta_join_ibss()
484 ifibss->bssid, ifibss->ssid, in ieee80211_ibss_csa_beacon()
527 if (!is_zero_ether_addr(ifibss->bssid)) { in ieee80211_ibss_finish_csa()
530 ifibss->bssid, ifibss->ssid, in ieee80211_ibss_finish_csa()
581 ieee80211_ibss_add_sta(struct ieee80211_sub_if_data *sdata, const u8 *bssid, in ieee80211_ibss_add_sta() argument
608 if (!ether_addr_equal(bssid, sdata->u.ibss.bssid)) { in ieee80211_ibss_add_sta()
670 if (!is_zero_ether_addr(ifibss->bssid)) { in ieee80211_ibss_disconnect()
672 ifibss->bssid, ifibss->ssid, in ieee80211_ibss_disconnect()
788 ifibss->bssid, false, in ieee80211_ibss_process_chanswitch()
823 ifibss->bssid, in ieee80211_ibss_process_chanswitch()
841 ifibss->bssid, in ieee80211_ibss_process_chanswitch()
927 ibss_dbg(sdata, "\tBSSID=%pM (reason: %d)\n", mgmt->bssid, reason); in ieee80211_rx_mgmt_deauth_ibss()
947 mgmt->bssid, auth_transaction); in ieee80211_rx_mgmt_auth_ibss()
959 mgmt->sa, sdata->u.ibss.bssid, NULL, 0, 0, 0); in ieee80211_rx_mgmt_auth_ibss()
978 if (!ether_addr_equal(mgmt->bssid, sdata->u.ibss.bssid)) in ieee80211_update_sta_info()
1007 sta = ieee80211_ibss_add_sta(sdata, mgmt->bssid, in ieee80211_update_sta_info()
1132 if (ether_addr_equal(cbss->bssid, sdata->u.ibss.bssid)) in ieee80211_rx_bss_info()
1153 mgmt->sa, mgmt->bssid, in ieee80211_rx_bss_info()
1163 mgmt->bssid); in ieee80211_rx_bss_info()
1166 ieee80211_ibss_add_sta(sdata, mgmt->bssid, mgmt->sa, in ieee80211_rx_bss_info()
1176 const u8 *bssid, const u8 *addr, in ieee80211_ibss_rx_no_sta() argument
1199 if (!ether_addr_equal(bssid, sdata->u.ibss.bssid)) in ieee80211_ibss_rx_no_sta()
1252 ifibss->bssid, in ieee80211_ibss_sta_expire()
1296 u8 bssid[ETH_ALEN]; in ieee80211_sta_create_ibss() local
1303 memcpy(bssid, ifibss->bssid, ETH_ALEN); in ieee80211_sta_create_ibss()
1308 get_random_bytes(bssid, ETH_ALEN); in ieee80211_sta_create_ibss()
1310 bssid[i] ^= sdata->vif.addr[i]; in ieee80211_sta_create_ibss()
1311 bssid[0] &= ~0x01; in ieee80211_sta_create_ibss()
1312 bssid[0] |= 0x02; in ieee80211_sta_create_ibss()
1315 sdata_info(sdata, "Creating new IBSS network, BSSID %pM\n", bssid); in ieee80211_sta_create_ibss()
1322 __ieee80211_sta_join_ibss(sdata, bssid, sdata->vif.bss_conf.beacon_int, in ieee80211_sta_create_ibss()
1407 const u8 *bssid = NULL; in ieee80211_sta_find_ibss() local
1419 bssid = ifibss->bssid; in ieee80211_sta_find_ibss()
1422 if (!is_zero_ether_addr(ifibss->bssid)) in ieee80211_sta_find_ibss()
1423 bssid = ifibss->bssid; in ieee80211_sta_find_ibss()
1424 cbss = cfg80211_get_bss(local->hw.wiphy, chan, bssid, in ieee80211_sta_find_ibss()
1435 cbss->bssid, ifibss->bssid); in ieee80211_sta_find_ibss()
1438 cbss->bssid); in ieee80211_sta_find_ibss()
1450 bssid); in ieee80211_sta_find_ibss()
1513 mgmt->bssid, tx_last_beacon); in ieee80211_rx_mgmt_probe_req()
1518 if (!ether_addr_equal(mgmt->bssid, ifibss->bssid) && in ieee80211_rx_mgmt_probe_req()
1519 !is_broadcast_ether_addr(mgmt->bssid)) in ieee80211_rx_mgmt_probe_req()
1753 if (params->bssid) { in ieee80211_ibss_join()
1754 memcpy(sdata->u.ibss.bssid, params->bssid, ETH_ALEN); in ieee80211_ibss_join()
1830 eth_zero_addr(ifibss->bssid); in ieee80211_ibss_leave()