File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -824,6 +824,10 @@ static int __vwifi_ndo_start_xmit(struct vwifi_vif *vif,
824
824
pr_info ("vwifi: AP %s (%pM) send packet to STA %s (%pM)\n" ,
825
825
vif -> ndev -> name , eth_hdr -> h_source , dest_vif -> ndev -> name ,
826
826
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 );
827
831
}
828
832
829
833
pkt = kmalloc (sizeof (struct vwifi_packet ), GFP_KERNEL );
@@ -861,6 +865,10 @@ static int __vwifi_ndo_start_xmit(struct vwifi_vif *vif,
861
865
pr_info ("vwifi: AP %s (%pM) receive packet from STA %s (%pM)\n" ,
862
866
dest_vif -> ndev -> name , eth_hdr -> h_dest , vif -> ndev -> name ,
863
867
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 );
864
872
}
865
873
866
874
/* Directly send to rx_queue, simulate the rx interrupt */
You can’t perform that action at this time.
0 commit comments