#1786: Wrong rx signal strength value in mac80211 radiotap headers --------------------------------------+------------------------------------- Reporter: [EMAIL PROTECTED] | Type: defect Status: new | Priority: major Component: ath5k | Version: trunk Keywords: radiotap signal strength | Patch_attached: 0 --------------------------------------+------------------------------------- This behavior was observed in kernel version v2.6.25-rc1:
When the ath5k network device is used in monitor mode and the frames are viewed with wireshark a wrong rx signal strength value is reported in the corresponding radiotap field. The values are reported using dB values. Since the ath5k driver currently uses dBm values there is an incompatible behavior. I would suggest to change the ath5k driver to use dB values. This would lead to the following changes (sorry I cannot add a diff patch since I normally work from behind a firewall and have no access to the ticket system from there): In base.c - ath5k_pci_probe:[[BR]] OLD: hw->max_rssi = -110; /* signal in dBm */[[BR]] NEW: hw->max_rssi = 64; /* signal in dB - assume a maximum rssi of 64 */ In base.c - ath5k_tasklet_rx:[[BR]] OLD: /* signal level in dBm */[[BR]] OLD: rxs.ssi = rxs.noise + ds->ds_rxstat.rs_rssi;[[BR]] NEW: /* signal level in dB */[[BR]] NEW: rxs.ssi = ds->ds_rxstat.rs_rssi; Since the noise value is still available in the rxs.noise field there is no loss of information if it is not added to the rxs.ssi field. -- Ticket URL: <http://madwifi.org/ticket/1786> madwifi.org <http://madwifi.org/> Multiband Atheros Driver for Wireless Fidelity ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Madwifi-tickets mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/madwifi-tickets
