Ticket #1094: madwifi-packet_type.patch
| File madwifi-packet_type.patch, 0.7 kB (added by brianbraunstein, 2 years ago) |
|---|
-
net80211/ieee80211_monitor.c
old new 346 346 * The frame passed it's CRC, so we can rely 347 347 * on the contents of the frame to set pkttype. 348 348 */ 349 if (IEEE80211_IS_MULTICAST(wh->i_addr1)) { 349 if (tx) 350 pkttype = PACKET_OUTGOING; 351 else if (IEEE80211_IS_MULTICAST(wh->i_addr1)) { 350 352 if (IEEE80211_ADDR_EQ(wh->i_addr1, dev->broadcast)) 351 353 pkttype = PACKET_BROADCAST; 352 354 else 353 355 pkttype = PACKET_MULTICAST; 354 356 } else 355 pkttype = (tx) ? PACKET_OUTGOING :PACKET_HOST;357 pkttype = PACKET_HOST; 356 358 } 357 359 358 360 if (vap->iv_opmode != IEEE80211_M_MONITOR ||
