nRF7002 Linux driver with Monitor Mode

I'm working on a linux driver for nRF7002 based on the experimental linux driver: https://github.com/NordicPlayground/nrf70-linux-driver. This is being done on linux 5.13 on an orange pi, so some modifications have already been made to make it compatible on both the linux driver, and nrfxlib. As of now, I have the driver able to be built, installed, and able to connect to wifi prior to testing monitor mode.

Moving on to monitor mode, which is a crucial feature, and as of now I've been able to get captured packets with tshark. There is an issue however where the size of the captured packets will never go beyond 64 bytes, even though the packet indicates it has a much longer length. I did see that with using the wifi monitor sample and wireshark combo, I was getting the same issue but a maximum of 152 bytes, so it seems that's there's some variability, however I can't seem to find anything in the released code for nrfxlib or the linux driver that explains why its being limited. Testing shows that the RPU length is only reporting at most 49 bytes for messages, so while the packet is not correct, that's what's being reported. 

This is mostly an issue with very large packets which are being malformed due to the size issue. I'm unsure if this is a firmware issue (nrf70) or an issue with the driver, but considering a similar is issue is on the monitor mode sample, it's possible its firmware or nrfxlib. Any direction on where to look to increase, or concat messages (if that's the issue) would be appreciated. If it's firmware related, some direction on how to safely update would be necessary.

Parents
  • Hi,

     

    I can confirm that there are issues with the monitor sample, which will be addressed in the next release of NCS.

    As you have noticed in the wifi/monitor sample, that the packet size is currently max. 64 bytes. A proposed workaround is posted here to extend this to 255 bytes:

     NRF7002 Monitor mode issues 

    There is a known issue in the nrfxlib patch where >255 bytes frames are not handled correctly (known issue, reported back to the developers), but the linux driver should be able to receive up to 255 bytes.

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    I can confirm that there are issues with the monitor sample, which will be addressed in the next release of NCS.

    As you have noticed in the wifi/monitor sample, that the packet size is currently max. 64 bytes. A proposed workaround is posted here to extend this to 255 bytes:

     NRF7002 Monitor mode issues 

    There is a known issue in the nrfxlib patch where >255 bytes frames are not handled correctly (known issue, reported back to the developers), but the linux driver should be able to receive up to 255 bytes.

     

    Kind regards,

    Håkon

Children
Related