fn loratap_bandwidth(bw_hz: u32) -> u8Expand description
Map a bandwidth to LoRaTap’s enumerated byte.
The field is an enumeration of the three classic LoRa bandwidths rather than a scale factor, so it cannot express the 62.5 kHz UMSH normally runs at. Anything it cannot name is reported as zero, which Wireshark renders as “Unknown” — a narrower bandwidth silently labelled as one of the three would misdescribe the radio.