Lines Matching refs:tdls_peer
1341 struct mwifiex_auto_tdls_peer *tdls_peer; in mwifiex_add_auto_tdls_peer() local
1347 list_for_each_entry(tdls_peer, &priv->auto_tdls_list, list) { in mwifiex_add_auto_tdls_peer()
1348 if (!memcmp(tdls_peer->mac_addr, mac, ETH_ALEN)) { in mwifiex_add_auto_tdls_peer()
1349 tdls_peer->tdls_status = TDLS_SETUP_INPROGRESS; in mwifiex_add_auto_tdls_peer()
1350 tdls_peer->rssi_jiffies = jiffies; in mwifiex_add_auto_tdls_peer()
1357 tdls_peer = kzalloc(sizeof(*tdls_peer), GFP_ATOMIC); in mwifiex_add_auto_tdls_peer()
1358 if (tdls_peer) { in mwifiex_add_auto_tdls_peer()
1359 ether_addr_copy(tdls_peer->mac_addr, mac); in mwifiex_add_auto_tdls_peer()
1360 tdls_peer->tdls_status = TDLS_SETUP_INPROGRESS; in mwifiex_add_auto_tdls_peer()
1361 tdls_peer->rssi_jiffies = jiffies; in mwifiex_add_auto_tdls_peer()
1362 INIT_LIST_HEAD(&tdls_peer->list); in mwifiex_add_auto_tdls_peer()
1363 list_add_tail(&tdls_peer->list, &priv->auto_tdls_list); in mwifiex_add_auto_tdls_peer()
1417 struct mwifiex_auto_tdls_peer *tdls_peer; in mwifiex_check_auto_tdls() local
1438 list_for_each_entry(tdls_peer, &priv->auto_tdls_list, list) { in mwifiex_check_auto_tdls()
1439 if ((jiffies - tdls_peer->rssi_jiffies) > in mwifiex_check_auto_tdls()
1441 tdls_peer->rssi = 0; in mwifiex_check_auto_tdls()
1442 tdls_peer->do_discover = true; in mwifiex_check_auto_tdls()
1446 if (((tdls_peer->rssi >= MWIFIEX_TDLS_RSSI_LOW) || in mwifiex_check_auto_tdls()
1447 !tdls_peer->rssi) && in mwifiex_check_auto_tdls()
1448 mwifiex_is_tdls_link_setup(tdls_peer->tdls_status)) { in mwifiex_check_auto_tdls()
1449 tdls_peer->tdls_status = TDLS_LINK_TEARDOWN; in mwifiex_check_auto_tdls()
1452 tdls_peer->mac_addr, -tdls_peer->rssi); in mwifiex_check_auto_tdls()
1453 tdls_peer->do_discover = true; in mwifiex_check_auto_tdls()
1456 tdls_peer->mac_addr, in mwifiex_check_auto_tdls()
1459 } else if (tdls_peer->rssi && in mwifiex_check_auto_tdls()
1460 tdls_peer->rssi <= MWIFIEX_TDLS_RSSI_HIGH && in mwifiex_check_auto_tdls()
1461 tdls_peer->tdls_status == TDLS_NOT_SETUP && in mwifiex_check_auto_tdls()
1462 tdls_peer->failure_count < in mwifiex_check_auto_tdls()
1465 tdls_peer->do_setup = true; in mwifiex_check_auto_tdls()
1468 "rssi=%d\n", tdls_peer->mac_addr, in mwifiex_check_auto_tdls()
1469 tdls_peer->rssi); in mwifiex_check_auto_tdls()