/** * @param indent indent * @return the string representation of this object. */ public String toString(String indent) { StringBuilder sb = new StringBuilder(); String ls = System.getProperty("line.separator"); sb.append(indent).append("20/40 BSS Coexistence:").append(ls); sb.append(indent).append(" Element ID: ").append(getElementId()).append(ls); sb.append(indent).append(" Length: ").append(getLengthAsInt()).append(" bytes").append(ls); sb.append(indent).append(" Information Requested: ").append(informationRequested).append(ls); sb.append(indent).append(" 40 MHz Intolerant: ").append(fortyMhzIntolerant).append(ls); sb.append(indent) .append(" 20 MHz BSS Width Requested: ") .append(twentyMhzBssWidthRequested) .append(ls); sb.append(indent) .append(" OBSS Scanning Exemption Requested: ") .append(obssScanningExemptionRequested) .append(ls); sb.append(indent) .append(" OBSS Scanning Exemption Granted: ") .append(obssScanningExemptionGranted) .append(ls); sb.append(indent).append(" Bit 5: ").append(bit5).append(ls); sb.append(indent).append(" Bit 6: ").append(bit6).append(ls); sb.append(indent).append(" Bit 7: ").append(bit7).append(ls); return sb.toString(); }
@Override public byte[] getRawData() { byte[] rawData = new byte[3]; rawData[0] = getElementId().value(); rawData[1] = getLength(); if (informationRequested) {
/** * @param indent indent * @return the string representation of this object. */ public String toString(String indent) { StringBuilder sb = new StringBuilder(); String ls = System.getProperty("line.separator"); sb.append(indent).append("20/40 BSS Coexistence:").append(ls); sb.append(indent).append(" Element ID: ").append(getElementId()).append(ls); sb.append(indent).append(" Length: ").append(getLengthAsInt()).append(" bytes").append(ls); sb.append(indent).append(" Information Requested: ").append(informationRequested).append(ls); sb.append(indent).append(" 40 MHz Intolerant: ").append(fortyMhzIntolerant).append(ls); sb.append(indent) .append(" 20 MHz BSS Width Requested: ") .append(twentyMhzBssWidthRequested) .append(ls); sb.append(indent) .append(" OBSS Scanning Exemption Requested: ") .append(obssScanningExemptionRequested) .append(ls); sb.append(indent) .append(" OBSS Scanning Exemption Granted: ") .append(obssScanningExemptionGranted) .append(ls); sb.append(indent).append(" Bit 5: ").append(bit5).append(ls); sb.append(indent).append(" Bit 6: ").append(bit6).append(ls); sb.append(indent).append(" Bit 7: ").append(bit7).append(ls); return sb.toString(); }
@Override public byte[] getRawData() { byte[] rawData = new byte[3]; rawData[0] = getElementId().value(); rawData[1] = getLength(); if (informationRequested) {