File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -193,43 +193,43 @@ struct mgmt_header_t {
193193#define CAPABILITY_PRIVACY (cap ) ((cap) & 0x0010)
194194
195195struct ssid_t {
196- uint8_t length ;
196+ u_int length ;
197197u_char ssid [33 ]; /* 32 + 1 for null */
198198};
199199
200200struct rates_t {
201- uint8_t length ;
201+ u_int length ;
202202uint8_t rate [16 ];
203203};
204204
205205struct challenge_t {
206- uint8_t length ;
206+ u_int length ;
207207uint8_t text [254 ]; /* 1-253 + 1 for null */
208208};
209209
210210struct fh_t {
211- uint8_t length ;
211+ u_int length ;
212212uint16_t dwell_time ;
213213uint8_t hop_set ;
214214uint8_t hop_pattern ;
215215uint8_t hop_index ;
216216};
217217
218218struct ds_t {
219- uint8_t length ;
219+ u_int length ;
220220uint8_t channel ;
221221};
222222
223223struct cf_t {
224- uint8_t length ;
224+ u_int length ;
225225uint8_t count ;
226226uint8_t period ;
227227uint16_t max_duration ;
228228uint16_t dur_remaining ;
229229};
230230
231231struct tim_t {
232- uint8_t length ;
232+ u_int length ;
233233uint8_t count ;
234234uint8_t period ;
235235uint8_t bitmap_control ;
@@ -403,15 +403,15 @@ struct meshcntl_t {
403403ND_PRINT("%s%2.1f%s", _sep, (.5 * ((_r) & 0x7f)), _suf)
404404#define PRINT_RATES (p ) \
405405if (p.rates_present) { \
406- int z; \
407406const char *sep = " ["; \
408- for (z = 0; z < p.rates.length ; z++ ) { \
409- PRINT_RATE(sep, p.rates.rate[z], \
410- ( p.rates.rate[z] & 0x80 ? "*" : "")); \
411- sep = " " ; \
412- } \
413- if (p.rates.length != 0) \
407+ if ( p.rates.length != 0 ) { \
408+ for (u_int z = 0; z < p.rates.length ; z++) { \
409+ PRINT_RATE(sep, p.rates.rate[z], \
410+ (p.rates.rate[z] & 0x80 ? "*" : "")) ; \
411+ sep = " "; \
412+ } \
414413ND_PRINT(" Mbit]"); \
414+ } \
415415}
416416
417417#define PRINT_DS_CHANNEL (p ) \
You can’t perform that action at this time.
0 commit comments