Lines Matching full:peer
199 "TDLS peer station not found in list\n"); in mwifiex_tdls_add_ht_oper()
205 "TDLS peer doesn't support ht capabilities\n"); in mwifiex_tdls_add_ht_oper()
253 "TDLS peer station not found in list\n"); in mwifiex_tdls_add_vht_oper()
259 "TDLS peer doesn't support vht capabilities\n"); in mwifiex_tdls_add_vht_oper()
267 "TDLS peer doesn't support wider bandwidth\n"); in mwifiex_tdls_add_vht_oper()
465 const u8 *peer, u8 action_code, in mwifiex_prep_tdls_encap_data() argument
478 memcpy(tf->da, peer, ETH_ALEN); in mwifiex_prep_tdls_encap_data()
572 ret = mwifiex_tdls_add_vht_oper(priv, peer, skb); in mwifiex_prep_tdls_encap_data()
577 ret = mwifiex_tdls_add_ht_oper(priv, peer, 1, skb); in mwifiex_prep_tdls_encap_data()
583 ret = mwifiex_tdls_add_ht_oper(priv, peer, 0, skb); in mwifiex_prep_tdls_encap_data()
614 const u8 *peer, const u8 *bssid) in mwifiex_tdls_add_link_ie() argument
625 memcpy(lnkid->resp_sta, peer, ETH_ALEN); in mwifiex_tdls_add_link_ie()
628 int mwifiex_send_tdls_data_frame(struct mwifiex_private *priv, const u8 *peer, in mwifiex_send_tdls_data_frame() argument
673 ret = mwifiex_prep_tdls_encap_data(priv, peer, action_code, in mwifiex_send_tdls_data_frame()
682 mwifiex_tdls_add_link_ie(skb, priv->curr_addr, peer, in mwifiex_send_tdls_data_frame()
686 ret = mwifiex_prep_tdls_encap_data(priv, peer, action_code, in mwifiex_send_tdls_data_frame()
695 mwifiex_tdls_add_link_ie(skb, peer, priv->curr_addr, in mwifiex_send_tdls_data_frame()
719 * is received by peer in mwifiex_send_tdls_data_frame()
730 const u8 *peer, in mwifiex_construct_tdls_action_frame() argument
745 memcpy(mgmt->da, peer, ETH_ALEN); in mwifiex_construct_tdls_action_frame()
810 int mwifiex_send_tdls_action_frame(struct mwifiex_private *priv, const u8 *peer, in mwifiex_send_tdls_action_frame() argument
856 if (mwifiex_construct_tdls_action_frame(priv, peer, action_code, in mwifiex_send_tdls_action_frame()
868 mwifiex_tdls_add_link_ie(skb, peer, priv->curr_addr, in mwifiex_send_tdls_action_frame()
888 /* This function process tdls action frame from peer.
889 * Peer capabilities are stored into station node structure.
895 u8 *peer, *pos, *end; in mwifiex_process_tdls_action_frame() local
907 peer = buf + ETH_ALEN; in mwifiex_process_tdls_action_frame()
910 "rx:tdls action: peer=%pM, action=%d\n", peer, action); in mwifiex_process_tdls_action_frame()
945 sta_ptr = mwifiex_add_sta_entry(priv, peer); in mwifiex_process_tdls_action_frame()
1058 mwifiex_tdls_process_config_link(struct mwifiex_private *priv, const u8 *peer) in mwifiex_tdls_process_config_link() argument
1064 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_config_link()
1068 "link absent for peer %pM; cannot config\n", peer); in mwifiex_tdls_process_config_link()
1072 memcpy(&tdls_oper.peer_mac, peer, ETH_ALEN); in mwifiex_tdls_process_config_link()
1079 mwifiex_tdls_process_create_link(struct mwifiex_private *priv, const u8 *peer) in mwifiex_tdls_process_create_link() argument
1085 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_create_link()
1089 "Setup already in progress for peer %pM\n", peer); in mwifiex_tdls_process_create_link()
1093 sta_ptr = mwifiex_add_sta_entry(priv, peer); in mwifiex_tdls_process_create_link()
1098 mwifiex_hold_tdls_packets(priv, peer); in mwifiex_tdls_process_create_link()
1099 memcpy(&tdls_oper.peer_mac, peer, ETH_ALEN); in mwifiex_tdls_process_create_link()
1106 mwifiex_tdls_process_disable_link(struct mwifiex_private *priv, const u8 *peer) in mwifiex_tdls_process_disable_link() argument
1112 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_disable_link()
1121 mwifiex_del_sta_entry(priv, peer); in mwifiex_tdls_process_disable_link()
1124 mwifiex_restore_tdls_packets(priv, peer, TDLS_LINK_TEARDOWN); in mwifiex_tdls_process_disable_link()
1125 mwifiex_auto_tdls_update_peer_status(priv, peer, TDLS_NOT_SETUP); in mwifiex_tdls_process_disable_link()
1126 memcpy(&tdls_oper.peer_mac, peer, ETH_ALEN); in mwifiex_tdls_process_disable_link()
1133 mwifiex_tdls_process_enable_link(struct mwifiex_private *priv, const u8 *peer) in mwifiex_tdls_process_enable_link() argument
1139 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_enable_link()
1143 "tdls: enable link %pM success\n", peer); in mwifiex_tdls_process_enable_link()
1173 mwifiex_restore_tdls_packets(priv, peer, TDLS_SETUP_COMPLETE); in mwifiex_tdls_process_enable_link()
1174 mwifiex_auto_tdls_update_peer_status(priv, peer, in mwifiex_tdls_process_enable_link()
1178 "tdls: enable link %pM failed\n", peer); in mwifiex_tdls_process_enable_link()
1184 mwifiex_del_sta_entry(priv, peer); in mwifiex_tdls_process_enable_link()
1186 mwifiex_restore_tdls_packets(priv, peer, TDLS_LINK_TEARDOWN); in mwifiex_tdls_process_enable_link()
1187 mwifiex_auto_tdls_update_peer_status(priv, peer, in mwifiex_tdls_process_enable_link()
1196 int mwifiex_tdls_oper(struct mwifiex_private *priv, const u8 *peer, u8 action) in mwifiex_tdls_oper() argument
1200 return mwifiex_tdls_process_enable_link(priv, peer); in mwifiex_tdls_oper()
1202 return mwifiex_tdls_process_disable_link(priv, peer); in mwifiex_tdls_oper()
1204 return mwifiex_tdls_process_create_link(priv, peer); in mwifiex_tdls_oper()
1206 return mwifiex_tdls_process_config_link(priv, peer); in mwifiex_tdls_oper()
1226 struct tdls_peer_info *peer = buf; in mwifiex_get_tdls_list() local
1239 ether_addr_copy(peer->peer_addr, sta_ptr->mac_addr); in mwifiex_get_tdls_list()
1240 peer++; in mwifiex_get_tdls_list()
1276 "Disable link failed for TDLS peer %pM", in mwifiex_disable_all_tdls_links()
1285 struct mwifiex_auto_tdls_peer *peer; in mwifiex_tdls_check_tx() local
1291 list_for_each_entry(peer, &priv->auto_tdls_list, list) { in mwifiex_tdls_check_tx()
1292 if (!memcmp(mac, peer->mac_addr, ETH_ALEN)) { in mwifiex_tdls_check_tx()
1293 if (peer->rssi <= MWIFIEX_TDLS_RSSI_HIGH && in mwifiex_tdls_check_tx()
1294 peer->tdls_status == TDLS_NOT_SETUP && in mwifiex_tdls_check_tx()
1295 (peer->failure_count < in mwifiex_tdls_check_tx()
1297 peer->tdls_status = TDLS_SETUP_INPROGRESS; in mwifiex_tdls_check_tx()
1299 "setup TDLS link, peer=%pM rssi=%d\n", in mwifiex_tdls_check_tx()
1300 peer->mac_addr, peer->rssi); in mwifiex_tdls_check_tx()
1303 peer->mac_addr, in mwifiex_tdls_check_tx()
1306 peer->do_setup = false; in mwifiex_tdls_check_tx()
1308 } else if (peer->failure_count < in mwifiex_tdls_check_tx()
1310 peer->do_discover) { in mwifiex_tdls_check_tx()
1312 peer->mac_addr, in mwifiex_tdls_check_tx()
1315 peer->do_discover = false; in mwifiex_tdls_check_tx()
1326 struct mwifiex_auto_tdls_peer *peer, *tmp_node; in mwifiex_flush_auto_tdls_list() local
1329 list_for_each_entry_safe(peer, tmp_node, &priv->auto_tdls_list, list) { in mwifiex_flush_auto_tdls_list()
1330 list_del(&peer->list); in mwifiex_flush_auto_tdls_list()
1331 kfree(peer); in mwifiex_flush_auto_tdls_list()
1356 /* create new TDLS peer */ in mwifiex_add_auto_tdls_peer()
1365 "Add auto TDLS peer= %pM to list\n", mac); in mwifiex_add_auto_tdls_peer()
1374 struct mwifiex_auto_tdls_peer *peer; in mwifiex_auto_tdls_update_peer_status() local
1380 list_for_each_entry(peer, &priv->auto_tdls_list, list) { in mwifiex_auto_tdls_update_peer_status()
1381 if (!memcmp(peer->mac_addr, mac, ETH_ALEN)) { in mwifiex_auto_tdls_update_peer_status()
1383 (peer->tdls_status == TDLS_SETUP_INPROGRESS)) in mwifiex_auto_tdls_update_peer_status()
1384 peer->failure_count++; in mwifiex_auto_tdls_update_peer_status()
1386 peer->failure_count = 0; in mwifiex_auto_tdls_update_peer_status()
1388 peer->tdls_status = link_status; in mwifiex_auto_tdls_update_peer_status()
1398 struct mwifiex_auto_tdls_peer *peer; in mwifiex_auto_tdls_update_peer_signal() local
1404 list_for_each_entry(peer, &priv->auto_tdls_list, list) { in mwifiex_auto_tdls_update_peer_signal()
1405 if (!memcmp(peer->mac_addr, mac, ETH_ALEN)) { in mwifiex_auto_tdls_update_peer_signal()
1406 peer->rssi = nflr - snr; in mwifiex_auto_tdls_update_peer_signal()
1407 peer->rssi_jiffies = jiffies; in mwifiex_auto_tdls_update_peer_signal()
1451 "teardown TDLS link,peer=%pM rssi=%d\n", in mwifiex_check_auto_tdls()
1467 "check TDLS with peer=%pM\t" in mwifiex_check_auto_tdls()