qiank10 / gr-csitool

A gnuradio module for sniffering 802.11 g packets and reporting CSI.
GNU General Public License v3.0
24 stars 7 forks source link

## problem about mac address filter #1

Open kangqf opened 7 years ago

kangqf commented 7 years ago

I have some problem to filter the specific mac address by using the ofdm_parse_payload_impl block. It can't check all of my mac address.

qiank10 commented 7 years ago

You can only specify one mac address, or leave the MAC Filter field blank to capture all packets. The format of mac address is xx:xx:xx:xx:xx:xx, where x is hex digit and : is any separator.

kangqf commented 7 years ago

I only use one mac address, but it doesn't work. For example, I want to filter 23:23:23:23:23:23, and I fill the field with 23:23:23:23:23:23 then I only get the packet with the same src mac, but It drops lots of packets. And then I replace the filed with the mac 23:23:23:23:23:aa then the same result occurs, I can only receive the packets with the same src 23:23:23:23:23:23. If I leave the field to blank I get the all packets and other mac packets I can also receive, This works well.

kangqf commented 7 years ago

big brother!!! your codes in 205 lines may be have some error

                  for(j = 0; j < 6; j++){
                    if(d_mac[i] != d_data_bytes[12 + i]){
                      break;
                    }
                  }

the i should be replaced by j!!!!!