Lines Matching refs:sta_ptr

191 	struct mwifiex_sta_node *sta_ptr;  in mwifiex_tdls_add_ht_oper()  local
196 sta_ptr = mwifiex_get_sta_entry(priv, mac); in mwifiex_tdls_add_ht_oper()
197 if (unlikely(!sta_ptr)) { in mwifiex_tdls_add_ht_oper()
203 if (!(le16_to_cpu(sta_ptr->tdls_cap.ht_capb.cap_info))) { in mwifiex_tdls_add_ht_oper()
228 memcpy(&sta_ptr->tdls_cap.ht_oper, ht_oper, in mwifiex_tdls_add_ht_oper()
240 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_add_vht_oper() local
250 sta_ptr = mwifiex_get_sta_entry(priv, mac); in mwifiex_tdls_add_vht_oper()
251 if (unlikely(!sta_ptr)) { in mwifiex_tdls_add_vht_oper()
257 if (!(le32_to_cpu(sta_ptr->tdls_cap.vhtcap.vht_cap_info))) { in mwifiex_tdls_add_vht_oper()
264 if (sta_ptr->tdls_cap.extcap.ext_capab[7] & in mwifiex_tdls_add_vht_oper()
285 vht_cap = &sta_ptr->tdls_cap.vhtcap; in mwifiex_tdls_add_vht_oper()
293 if (ap_vht_cap && sta_ptr->tdls_cap.extcap.ext_capab[7] & in mwifiex_tdls_add_vht_oper()
897 struct mwifiex_sta_node *sta_ptr; in mwifiex_process_tdls_action_frame() local
948 sta_ptr = mwifiex_add_sta_entry(priv, peer); in mwifiex_process_tdls_action_frame()
949 if (!sta_ptr) in mwifiex_process_tdls_action_frame()
952 sta_ptr->tdls_cap.capab = cpu_to_le16(cap); in mwifiex_process_tdls_action_frame()
962 if (ie_len > sizeof(sta_ptr->tdls_cap.rates)) in mwifiex_process_tdls_action_frame()
964 sta_ptr->tdls_cap.rates_len = ie_len; in mwifiex_process_tdls_action_frame()
966 sta_ptr->tdls_cap.rates[i] = pos[i + 2]; in mwifiex_process_tdls_action_frame()
970 if (ie_len > sizeof(sta_ptr->tdls_cap.rates)) in mwifiex_process_tdls_action_frame()
972 basic = sta_ptr->tdls_cap.rates_len; in mwifiex_process_tdls_action_frame()
973 if (ie_len > sizeof(sta_ptr->tdls_cap.rates) - basic) in mwifiex_process_tdls_action_frame()
976 sta_ptr->tdls_cap.rates[basic + i] = pos[i + 2]; in mwifiex_process_tdls_action_frame()
977 sta_ptr->tdls_cap.rates_len += ie_len; in mwifiex_process_tdls_action_frame()
983 memcpy((u8 *)&sta_ptr->tdls_cap.ht_capb, pos + 2, in mwifiex_process_tdls_action_frame()
985 sta_ptr->is_11n_enabled = 1; in mwifiex_process_tdls_action_frame()
991 memcpy(&sta_ptr->tdls_cap.ht_oper, pos + 2, in mwifiex_process_tdls_action_frame()
997 sta_ptr->tdls_cap.coex_2040 = pos[2]; in mwifiex_process_tdls_action_frame()
1004 memcpy((u8 *)&sta_ptr->tdls_cap.extcap, pos, in mwifiex_process_tdls_action_frame()
1014 memcpy((u8 *)&sta_ptr->tdls_cap.rsn_ie, pos, in mwifiex_process_tdls_action_frame()
1022 sta_ptr->tdls_cap.qos_info = pos[2]; in mwifiex_process_tdls_action_frame()
1030 memcpy(&sta_ptr->tdls_cap.vhtoper, pos + 2, in mwifiex_process_tdls_action_frame()
1039 memcpy((u8 *)&sta_ptr->tdls_cap.vhtcap, pos + 2, in mwifiex_process_tdls_action_frame()
1041 sta_ptr->is_11ac_enabled = 1; in mwifiex_process_tdls_action_frame()
1048 sta_ptr->tdls_cap.aid = in mwifiex_process_tdls_action_frame()
1063 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_process_config_link() local
1067 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_config_link()
1069 if (!sta_ptr || sta_ptr->tdls_status == TDLS_SETUP_FAILURE) { in mwifiex_tdls_process_config_link()
1084 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_process_create_link() local
1088 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_create_link()
1090 if (sta_ptr && sta_ptr->tdls_status == TDLS_SETUP_INPROGRESS) { in mwifiex_tdls_process_create_link()
1096 sta_ptr = mwifiex_add_sta_entry(priv, peer); in mwifiex_tdls_process_create_link()
1097 if (!sta_ptr) in mwifiex_tdls_process_create_link()
1100 sta_ptr->tdls_status = TDLS_SETUP_INPROGRESS; in mwifiex_tdls_process_create_link()
1111 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_process_disable_link() local
1115 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_disable_link()
1117 if (sta_ptr) { in mwifiex_tdls_process_disable_link()
1118 if (sta_ptr->is_11n_enabled) { in mwifiex_tdls_process_disable_link()
1138 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_process_enable_link() local
1142 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_enable_link()
1144 if (sta_ptr && (sta_ptr->tdls_status != TDLS_SETUP_FAILURE)) { in mwifiex_tdls_process_enable_link()
1148 sta_ptr->tdls_status = TDLS_SETUP_COMPLETE; in mwifiex_tdls_process_enable_link()
1150 mcs = sta_ptr->tdls_cap.ht_capb.mcs; in mwifiex_tdls_process_enable_link()
1152 sta_ptr->is_11n_enabled = true; in mwifiex_tdls_process_enable_link()
1153 if (sta_ptr->is_11n_enabled) { in mwifiex_tdls_process_enable_link()
1154 if (le16_to_cpu(sta_ptr->tdls_cap.ht_capb.cap_info) & in mwifiex_tdls_process_enable_link()
1156 sta_ptr->max_amsdu = in mwifiex_tdls_process_enable_link()
1159 sta_ptr->max_amsdu = in mwifiex_tdls_process_enable_link()
1163 sta_ptr->ampdu_sta[i] = in mwifiex_tdls_process_enable_link()
1167 sta_ptr->ampdu_sta[i] = BA_STREAM_NOT_ALLOWED; in mwifiex_tdls_process_enable_link()
1169 if (sta_ptr->tdls_cap.extcap.ext_capab[3] & in mwifiex_tdls_process_enable_link()
1175 memset(sta_ptr->rx_seq, 0xff, sizeof(sta_ptr->rx_seq)); in mwifiex_tdls_process_enable_link()
1182 if (sta_ptr) { in mwifiex_tdls_process_enable_link()
1216 struct mwifiex_sta_node *sta_ptr; in mwifiex_get_tdls_link_status() local
1218 sta_ptr = mwifiex_get_sta_entry(priv, mac); in mwifiex_get_tdls_link_status()
1219 if (sta_ptr) in mwifiex_get_tdls_link_status()
1220 return sta_ptr->tdls_status; in mwifiex_get_tdls_link_status()
1228 struct mwifiex_sta_node *sta_ptr; in mwifiex_get_tdls_list() local
1240 list_for_each_entry(sta_ptr, &priv->sta_list, list) { in mwifiex_get_tdls_list()
1241 if (mwifiex_is_tdls_link_setup(sta_ptr->tdls_status)) { in mwifiex_get_tdls_list()
1242 ether_addr_copy(peer->peer_addr, sta_ptr->mac_addr); in mwifiex_get_tdls_list()
1256 struct mwifiex_sta_node *sta_ptr; in mwifiex_disable_all_tdls_links() local
1262 list_for_each_entry(sta_ptr, &priv->sta_list, list) { in mwifiex_disable_all_tdls_links()
1265 if (sta_ptr->is_11n_enabled) { in mwifiex_disable_all_tdls_links()
1272 mwifiex_restore_tdls_packets(priv, sta_ptr->mac_addr, in mwifiex_disable_all_tdls_links()
1274 memcpy(&tdls_oper.peer_mac, sta_ptr->mac_addr, ETH_ALEN); in mwifiex_disable_all_tdls_links()
1280 sta_ptr->mac_addr); in mwifiex_disable_all_tdls_links()