Lines Matching refs:data2
1285 struct mac80211_hwsim_data *data = hw->priv, *data2; in mac80211_hwsim_tx_frame_no_nl() local
1347 list_for_each_entry(data2, &hwsim_radios, list) { in mac80211_hwsim_tx_frame_no_nl()
1354 if (data == data2) in mac80211_hwsim_tx_frame_no_nl()
1357 if (!data2->started || (data2->idle && !data2->tmp_chan) || in mac80211_hwsim_tx_frame_no_nl()
1358 !hwsim_ps_rx_ok(data2, skb)) in mac80211_hwsim_tx_frame_no_nl()
1361 if (!(data->group & data2->group)) in mac80211_hwsim_tx_frame_no_nl()
1364 if (data->netgroup != data2->netgroup) in mac80211_hwsim_tx_frame_no_nl()
1367 if (!hwsim_chans_compat(chan, data2->tmp_chan) && in mac80211_hwsim_tx_frame_no_nl()
1368 !hwsim_chans_compat(chan, data2->channel)) { in mac80211_hwsim_tx_frame_no_nl()
1370 data2->hw, IEEE80211_IFACE_ITER_NORMAL, in mac80211_hwsim_tx_frame_no_nl()
1400 if (mac80211_hwsim_addr_match(data2, hdr->addr1)) in mac80211_hwsim_tx_frame_no_nl()
1403 rx_status.mactime = now + data2->tsf_offset; in mac80211_hwsim_tx_frame_no_nl()
1409 data2->rx_pkts++; in mac80211_hwsim_tx_frame_no_nl()
1410 data2->rx_bytes += nskb->len; in mac80211_hwsim_tx_frame_no_nl()
1411 ieee80211_rx_irqsafe(data2->hw, nskb); in mac80211_hwsim_tx_frame_no_nl()
3035 struct mac80211_hwsim_data *data2; in hwsim_tx_info_frame_received_nl() local
3057 data2 = get_hwsim_data_ref_from_addr(src); in hwsim_tx_info_frame_received_nl()
3058 if (!data2) in hwsim_tx_info_frame_received_nl()
3063 data2->netgroup) in hwsim_tx_info_frame_received_nl()
3066 if (info->snd_portid != data2->wmediumd) in hwsim_tx_info_frame_received_nl()
3071 spin_lock_irqsave(&data2->pending.lock, flags); in hwsim_tx_info_frame_received_nl()
3072 skb_queue_walk_safe(&data2->pending, skb, tmp) { in hwsim_tx_info_frame_received_nl()
3079 __skb_unlink(skb, &data2->pending); in hwsim_tx_info_frame_received_nl()
3084 spin_unlock_irqrestore(&data2->pending.lock, flags); in hwsim_tx_info_frame_received_nl()
3112 mac80211_hwsim_monitor_ack(data2->channel, in hwsim_tx_info_frame_received_nl()
3117 ieee80211_tx_status_irqsafe(data2->hw, skb); in hwsim_tx_info_frame_received_nl()
3127 struct mac80211_hwsim_data *data2; in hwsim_cloned_frame_received_nl() local
3157 data2 = get_hwsim_data_ref_from_addr(dst); in hwsim_cloned_frame_received_nl()
3158 if (!data2) in hwsim_cloned_frame_received_nl()
3161 if (data2->use_chanctx) { in hwsim_cloned_frame_received_nl()
3162 if (data2->tmp_chan) in hwsim_cloned_frame_received_nl()
3163 channel = data2->tmp_chan; in hwsim_cloned_frame_received_nl()
3164 else if (data2->chanctx) in hwsim_cloned_frame_received_nl()
3165 channel = data2->chanctx->def.chan; in hwsim_cloned_frame_received_nl()
3167 channel = data2->channel; in hwsim_cloned_frame_received_nl()
3174 data2->netgroup) in hwsim_cloned_frame_received_nl()
3177 if (info->snd_portid != data2->wmediumd) in hwsim_cloned_frame_received_nl()
3183 if ((data2->idle && !data2->tmp_chan) || !data2->started) in hwsim_cloned_frame_received_nl()
3193 mutex_lock(&data2->mutex); in hwsim_cloned_frame_received_nl()
3197 mutex_unlock(&data2->mutex); in hwsim_cloned_frame_received_nl()
3200 mutex_unlock(&data2->mutex); in hwsim_cloned_frame_received_nl()
3213 data2->rx_pkts++; in hwsim_cloned_frame_received_nl()
3214 data2->rx_bytes += skb->len; in hwsim_cloned_frame_received_nl()
3215 ieee80211_rx_irqsafe(data2->hw, skb); in hwsim_cloned_frame_received_nl()