Skip to content

Commit 08b7477

Browse files
jaewan-githubjmberg-intel
authored andcommitted
wifi: mac80211_hwsim: Rename pid to portid to avoid confusion
It is a frequent mistake to confuse the netlink port identifier with a process identifier. Try to reduce this confusion by renaming that hold port identifiers portid instead of pid. This change replicates following commit: commit 15e4730 ("netlink: Rename pid to portid to avoid confusion") Signed-off-by: Jaewan Kim <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent cba7217 commit 08b7477

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/net/wireless/mac80211_hwsim.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2034,7 +2034,7 @@ static void mac80211_hwsim_tx_frame(struct ieee80211_hw *hw,
20342034
struct ieee80211_channel *chan)
20352035
{
20362036
struct mac80211_hwsim_data *data = hw->priv;
2037-
u32 _pid = READ_ONCE(data->wmediumd);
2037+
u32 _portid = READ_ONCE(data->wmediumd);
20382038

20392039
if (ieee80211_hw_check(hw, SUPPORTS_RC_TABLE)) {
20402040
struct ieee80211_tx_info *txi = IEEE80211_SKB_CB(skb);
@@ -2045,8 +2045,8 @@ static void mac80211_hwsim_tx_frame(struct ieee80211_hw *hw,
20452045

20462046
mac80211_hwsim_monitor_rx(hw, skb, chan);
20472047

2048-
if (_pid || hwsim_virtio_enabled)
2049-
return mac80211_hwsim_tx_frame_nl(hw, skb, _pid, chan);
2048+
if (_portid || hwsim_virtio_enabled)
2049+
return mac80211_hwsim_tx_frame_nl(hw, skb, _portid, chan);
20502050

20512051
data->tx_pkts++;
20522052
data->tx_bytes += skb->len;

0 commit comments

Comments
 (0)