},
"short_gi_80": {
"description": "Short GI for 80 MHz",
- "type": "boolean"
+ "type": "boolean",
+ "default": true
},
"spectrum_mgmt_required": {
"description": "Set Spectrum Management subfield in the Capability Information field",
"description": "Indicates the maximum length of A-MPDU pre-EOF padding that the STA can recv",
"type": "number",
"minimum": 0,
- "maximum": 7
+ "maximum": 7,
+ "default": 7
},
"vht_max_mpdu": {
"description": "Maximum MPDU length",
config.vht_capab += '[BF-ANTENNA-' + min(((vht_capab >> 13) & 3) + 1, config.beamformer_antennas) + ']';
/* supported Channel widths */
- if (vht_capab & 0xc == 8 && config.vht160 <= 2)
+ if ((vht_capab & 0xc) == 8 && config.vht160 <= 2)
config.vht_capab += '[VHT160-80PLUS80]';
- else if (vht_capab & 0xc == 4 && config.vht160 <= 1)
+ else if ((vht_capab & 0xc) == 4 && config.vht160 <= 2)
config.vht_capab += '[VHT160]';
/* maximum MPDU length */
- if (vht_capab & 3 > 1 && config.vht_max_mpdu > 11454)
+ if ((vht_capab & 3) > 1 && config.vht_max_mpdu >= 11454)
config.vht_capab += '[MAX-MPDU-11454]';
- else if (vht_capab & 3 && config.vht_max_mpdu > 7991)
+ else if ((vht_capab & 3) && config.vht_max_mpdu >= 7991)
config.vht_capab += '[MAX-MPDU-7991]';
/* maximum A-MPDU length exponent */