Permalink
Browse files

bcm4361: monitor mode without radiotap headers works.

  • Loading branch information...
matthiasseemoo committed Jan 6, 2019
1 parent 4e972a5 commit a9886c8cec6953a956f51ea8f16cfc33a11e3dd1
@@ -764,7 +764,7 @@ struct wlc_info {
int PAD; /* 0x178 */
int PAD; /* 0x17C */
int PAD; /* 0x180 */
int PAD; /* 0x184 */
unsigned int monitor; /* 0x184 bcm4361 verified */
int PAD; /* 0x188 */
int PAD; /* 0x18C */
int PAD; /* 0x190 */
@@ -800,7 +800,7 @@ struct wlc_info {
int PAD; /* 0x200 */
int PAD; /* 0x204 */
int PAD; /* 0x208 */
int monitor; /* 0x20C */
int PAD; /* 0x20C */
int bcnmisc_ibss; /* 0x210 */
int bcnmisc_scan; /* 0x214 */
int bcnmisc_monitor; /* 0x218 */
@@ -51,7 +51,7 @@ extern void prepend_ethernet_ipv4_udp_header(struct sk_buff *p);
void
wlc_recv_hook(struct wlc_info *wlc, struct sk_buff *p) {
struct osl_info *osh = wlc->osh;
uint32_t monitor = *(uint32_t *)(wlc + 388);
uint32_t monitor = wlc->monitor;

if (monitor > 0) {
struct sk_buff *p_new = pkt_buf_get_skb(osh, p->len - FRAMEOFFSET);

0 comments on commit a9886c8

Please sign in to comment.