Searched refs:tdls_peer (Results 1 - 4 of 4) sorted by relevance

/linux-4.1.27/drivers/net/wireless/mwifiex/
H A Dtdls.c1251 struct mwifiex_auto_tdls_peer *tdls_peer; mwifiex_add_auto_tdls_peer() local
1258 list_for_each_entry(tdls_peer, &priv->auto_tdls_list, list) { mwifiex_add_auto_tdls_peer()
1259 if (!memcmp(tdls_peer->mac_addr, mac, ETH_ALEN)) { mwifiex_add_auto_tdls_peer()
1260 tdls_peer->tdls_status = TDLS_SETUP_INPROGRESS; mwifiex_add_auto_tdls_peer()
1261 tdls_peer->rssi_jiffies = jiffies; mwifiex_add_auto_tdls_peer()
1268 tdls_peer = kzalloc(sizeof(*tdls_peer), GFP_ATOMIC); mwifiex_add_auto_tdls_peer()
1269 if (tdls_peer) { mwifiex_add_auto_tdls_peer()
1270 ether_addr_copy(tdls_peer->mac_addr, mac); mwifiex_add_auto_tdls_peer()
1271 tdls_peer->tdls_status = TDLS_SETUP_INPROGRESS; mwifiex_add_auto_tdls_peer()
1272 tdls_peer->rssi_jiffies = jiffies; mwifiex_add_auto_tdls_peer()
1273 INIT_LIST_HEAD(&tdls_peer->list); mwifiex_add_auto_tdls_peer()
1274 list_add_tail(&tdls_peer->list, &priv->auto_tdls_list); mwifiex_add_auto_tdls_peer()
1330 struct mwifiex_auto_tdls_peer *tdls_peer; mwifiex_check_auto_tdls() local
1359 list_for_each_entry(tdls_peer, &priv->auto_tdls_list, list) { mwifiex_check_auto_tdls()
1360 if ((jiffies - tdls_peer->rssi_jiffies) > mwifiex_check_auto_tdls()
1362 tdls_peer->rssi = 0; mwifiex_check_auto_tdls()
1363 tdls_peer->do_discover = true; mwifiex_check_auto_tdls()
1367 if (((tdls_peer->rssi >= MWIFIEX_TDLS_RSSI_LOW) || mwifiex_check_auto_tdls()
1368 !tdls_peer->rssi) && mwifiex_check_auto_tdls()
1369 tdls_peer->tdls_status == TDLS_SETUP_COMPLETE) { mwifiex_check_auto_tdls()
1370 tdls_peer->tdls_status = TDLS_LINK_TEARDOWN; mwifiex_check_auto_tdls()
1373 tdls_peer->mac_addr, -tdls_peer->rssi); mwifiex_check_auto_tdls()
1374 tdls_peer->do_discover = true; mwifiex_check_auto_tdls()
1377 tdls_peer->mac_addr, mwifiex_check_auto_tdls()
1380 } else if (tdls_peer->rssi && mwifiex_check_auto_tdls()
1381 tdls_peer->rssi <= MWIFIEX_TDLS_RSSI_HIGH && mwifiex_check_auto_tdls()
1382 tdls_peer->tdls_status == TDLS_NOT_SETUP && mwifiex_check_auto_tdls()
1383 tdls_peer->failure_count < mwifiex_check_auto_tdls()
1386 tdls_peer->do_setup = true; mwifiex_check_auto_tdls()
1389 tdls_peer->mac_addr, -tdls_peer->rssi); mwifiex_check_auto_tdls()
/linux-4.1.27/net/mac80211/
H A Dtdls.c30 if (!is_zero_ether_addr(sdata->u.mgd.tdls_peer)) { ieee80211_tdls_peer_del_work()
31 tdls_dbg(sdata, "TDLS del peer %pM\n", sdata->u.mgd.tdls_peer); ieee80211_tdls_peer_del_work()
32 sta_info_destroy_addr(sdata, sdata->u.mgd.tdls_peer); ieee80211_tdls_peer_del_work()
33 eth_zero_addr(sdata->u.mgd.tdls_peer); ieee80211_tdls_peer_del_work()
1009 if (!is_zero_ether_addr(sdata->u.mgd.tdls_peer) && ieee80211_tdls_mgmt_setup()
1010 !ether_addr_equal(sdata->u.mgd.tdls_peer, peer)) { ieee80211_tdls_mgmt_setup()
1033 memcpy(sdata->u.mgd.tdls_peer, peer, ETH_ALEN); ieee80211_tdls_mgmt_setup()
1044 eth_zero_addr(sdata->u.mgd.tdls_peer); ieee80211_tdls_mgmt_setup()
1208 WARN_ON_ONCE(is_zero_ether_addr(sdata->u.mgd.tdls_peer) || ieee80211_tdls_oper()
1209 !ether_addr_equal(sdata->u.mgd.tdls_peer, peer)); ieee80211_tdls_oper()
1234 if (ret == 0 && ether_addr_equal(sdata->u.mgd.tdls_peer, peer)) { ieee80211_tdls_oper()
1236 eth_zero_addr(sdata->u.mgd.tdls_peer); ieee80211_tdls_oper()
H A Dtx.c1932 bool tdls_peer, tdls_auth; ieee80211_lookup_ra_sta() local
1934 tdls_peer = test_sta_flag(sta, ieee80211_lookup_ra_sta()
1939 if (tdls_peer && tdls_auth) { ieee80211_lookup_ra_sta()
1951 if (tdls_peer && !tdls_auth && ieee80211_lookup_ra_sta()
2004 bool tdls_peer; ieee80211_build_hdr() local
2146 tdls_peer = test_sta_flag(sta, WLAN_STA_TDLS_PEER); ieee80211_build_hdr()
2148 if (tdls_peer) { ieee80211_build_hdr()
H A Dieee80211_i.h539 u8 tdls_peer[ETH_ALEN] __aligned(2);

Completed in 180 milliseconds