The isr_intval in ieee80211req_scan_result structure should be 16 bit.

This makes ifconfig list scan display the correct beacon interval
(previously it would int overflow). As a side effect, this makes the
ieee80211req_scan_result word aligned.

Submitted by:	Paul B Mahol <onemda at gmail.com>
This commit is contained in:
rpaulo 2009-11-09 11:23:37 +00:00
parent 65345261b1
commit 595994ce84

View File

@ -790,7 +790,7 @@ struct ieee80211req_scan_result {
uint16_t isr_flags; /* channel flags */ uint16_t isr_flags; /* channel flags */
int8_t isr_noise; int8_t isr_noise;
int8_t isr_rssi; int8_t isr_rssi;
uint8_t isr_intval; /* beacon interval */ uint16_t isr_intval; /* beacon interval */
uint8_t isr_capinfo; /* capabilities */ uint8_t isr_capinfo; /* capabilities */
uint8_t isr_erp; /* ERP element */ uint8_t isr_erp; /* ERP element */
uint8_t isr_bssid[IEEE80211_ADDR_LEN]; uint8_t isr_bssid[IEEE80211_ADDR_LEN];