bssid, shost & dhost in wrong order for 802.11 frame
In radio_frame.js from line 57, it appears the mac addresses are in the wrong order.
Current order is bssid, shost, dhost
this.bssid = new EthernetAddr(raw_packet, offset); offset += 6;
this.shost = new EthernetAddr(raw_packet, offset); offset += 6;
this.dhost = new EthernetAddr(raw_packet, offset); offset += 6;
Should be dhost, shost, bssid
this.dhost = new EthernetAddr(raw_packet, offset); offset += 6;
this.shost = new EthernetAddr(raw_packet, offset); offset += 6;
this.bssid = new EthernetAddr(raw_packet, offset); offset += 6;
I could make a pull request or you can use my fork for this specific issue.
Thanks Marcel,
Probably best to do a pull request if you can, that way it's easier to maintain future updates. I'll use yours in the mean time.
Cheers Paul