OpenWrt Forum Archive

Topic: WLC_GET_RSSI

The content of this topic has been archived on 18 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

For the records, here is the struct that I use for WLC_GET_RSSI call :

typedef struct {
  uint32          rssi;        /* RSSI */
  struct ether_addr ea;        /* MAC address */
  uint16          unknown;    /* 41 then 00 */
} wlc_rssi_t;

unknown field is set to 0x0041.

The WLC_GET_RSSI ioctl call, with the above structure,  does not seem to differentiate between MAC addresses when the router is in ad-hoc mode.  Is there a way by which we can enable this, while maintaining the router ad-hoc?

Or, is there a way I can register for events with the Broadcom binary, to obtain notification on receipt of packets? This way I may be able to issue the ioctl call in the even handler.

Ace wrote:

Or, is there a way I can register for events with the Broadcom binary, to obtain notification on receipt of packets? This way I may be able to issue the ioctl call in the even handler.

You could enable monitor mode with iwpriv (the interface will still work) and then use libpcap to capture all the packets from the prism0 interface.

The discussion might have continued from here.