On Saturday 17 March 2007 17:30, Michael Wu wrote: > > + /* process and remove the injection radiotap header */ > > + > > + if(control->flags & IEEE80211_TXCTL_INJECTED_PACKET) { > > dev points to the virtual interface that the frame originally came in on. > You can get sdata from that and figure out if the interface was a monitor > interface. > Of course, this depends on ifindex being set properly. You added: pkt_data->ifindex = local->mdev->ifindex; but in that same function, this is used instead: pkt_data->ifindex = sdata->dev->ifindex; Which allows the master device to figure out which virtual interface the skb came from. -Michael Wu
Attachment:
pgpVXgOGorI13.pgp
Description: PGP signature