Skip to content

Commit 5fdb39d

Browse files
committed
Add packet transmission messages
Add packet transmission/reception kernel messages for IBSS mode.
1 parent 07072f8 commit 5fdb39d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

vwifi.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,10 @@ static int __vwifi_ndo_start_xmit(struct vwifi_vif *vif,
824824
pr_info("vwifi: AP %s (%pM) send packet to STA %s (%pM)\n",
825825
vif->ndev->name, eth_hdr->h_source, dest_vif->ndev->name,
826826
eth_hdr->h_dest);
827+
} else if (vif->wdev.iftype == NL80211_IFTYPE_ADHOC) {
828+
pr_info("vwifi: IBSS %s (%pM) send packet to IBSS %s (%pM)\n",
829+
vif->ndev->name, eth_hdr->h_source, dest_vif->ndev->name,
830+
eth_hdr->h_dest);
827831
}
828832

829833
pkt = kmalloc(sizeof(struct vwifi_packet), GFP_KERNEL);
@@ -861,6 +865,10 @@ static int __vwifi_ndo_start_xmit(struct vwifi_vif *vif,
861865
pr_info("vwifi: AP %s (%pM) receive packet from STA %s (%pM)\n",
862866
dest_vif->ndev->name, eth_hdr->h_dest, vif->ndev->name,
863867
eth_hdr->h_source);
868+
} else if (dest_vif->wdev.iftype == NL80211_IFTYPE_ADHOC) {
869+
pr_info("vwifi: IBSS %s (%pM) receive packet from IBSS %s (%pM)\n",
870+
dest_vif->ndev->name, eth_hdr->h_dest, vif->ndev->name,
871+
eth_hdr->h_source);
864872
}
865873

866874
/* Directly send to rx_queue, simulate the rx interrupt */

0 commit comments

Comments
 (0)