Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't capture packets with bad checksum #200

Open
baharxy opened this issue Mar 28, 2018 · 5 comments
Open

Can't capture packets with bad checksum #200

baharxy opened this issue Mar 28, 2018 · 5 comments

Comments

@baharxy
Copy link

baharxy commented Mar 28, 2018

Hi, I am using the nexmon firmware on a RPI 3, and looking to do some debugging on packets with bad checksums that I intentionally inject to the network.

I can capture packets with bad check sums on other wifi chipsets and linux machines by executing "iw phy $phy_name interface add mon0 type monitor flags fcsfail". However after using the same command on the RPI 3 with the nexmon patch, I don't see any packets with the bad checksums.

Could you please let me know if there is anything that I am missing?
Thanks.

@matthiasseemoo
Copy link
Member

matthiasseemoo commented Mar 28, 2018 via email

@baharxy
Copy link
Author

baharxy commented Mar 28, 2018

I already built the patch [that has the MONITOR_ACTIVATE_BADFCS set to (1 << 5), in monitormode.h ] for RPI3, I assume that already should have been activated the collection of frames with wrong checksum , hasn't it?

@baharxy
Copy link
Author

baharxy commented Mar 29, 2018

Looks like that wlc_mctrl_hook is missing from the monitormode.c source code for bcm43430a1 (RPI 3) patches. Do you happen to know if there is any specific reason for this? Thanks.

@p8me
Copy link

p8me commented Mar 29, 2018

The key part missing from monitormode.c in RPI-3 (BCM43430a1 ) [by comparing versus Nexus 5 (BCM4339)] is:
__attribute__((at(?????, ...))) BLPatch(????, wlc_mctrl_hook);
Is there anyway to know what should be the address and the original function name (first argument to BLPatch)?

For example when applying BLPatch on wl_monitor_hook in here.
where is flash_patch_179 is coming from?

@matthiasseemoo
Copy link
Member

matthiasseemoo commented Mar 29, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants