struct ieee80211_channel *chan)
 {
        struct mac80211_hwsim_data *data = hw->priv;
-       u32 _pid = READ_ONCE(data->wmediumd);
+       u32 _portid = READ_ONCE(data->wmediumd);
 
        if (ieee80211_hw_check(hw, SUPPORTS_RC_TABLE)) {
                struct ieee80211_tx_info *txi = IEEE80211_SKB_CB(skb);
 
        mac80211_hwsim_monitor_rx(hw, skb, chan);
 
-       if (_pid || hwsim_virtio_enabled)
-               return mac80211_hwsim_tx_frame_nl(hw, skb, _pid, chan);
+       if (_portid || hwsim_virtio_enabled)
+               return mac80211_hwsim_tx_frame_nl(hw, skb, _portid, chan);
 
        data->tx_pkts++;
        data->tx_bytes += skb->len;