Ongy / netlink-hs

Netlink communication for Haskell
BSD 3-Clause "New" or "Revised" License
2 stars 7 forks source link

System.Linux.Netlink.GeNetlink.NL80211.StaInfo oddities #14

Open paulfertser opened 4 years ago

paulfertser commented 4 years ago

Hello, Few issues I noticed while working on https://github.com/jaor/xmobar/pull/429 :

  1. There's no eNL80211_ATTR_STA_INFO in replies to SCAN requests and there's no helper to do a eNL80211_CMD_GET_STATION request.
  2. It's unclear when staInfoFromAttributes can be used , as atttributes from SCAN replies do not have the needed info, and GET_STATION reply can't be converted to Attributes; staInfoFromPacket works on it though;
  3. sigMBM and sigMBMA are named wrong, that's the value in dBm, not mBm. Also, the value returned from netlink as u8 should be reinterpreted as s8 as that's actually a signed value. I can split this issue up or try to send patches etc, please advice me on the best course of actions.