Lines Matching defs:ie

59             InformationElement ie = new InformationElement();
60 ie.id = eid;
61 ie.bytes = new byte[elementLength];
62 data.get(ie.bytes);
63 infoElements.add(ie);
74 public void from(InformationElement ie) {
75 if (ie.id != InformationElement.EID_BSS_LOAD) {
76 throw new IllegalArgumentException("Element id is not BSS_LOAD, : " + ie.id);
78 if (ie.bytes.length != 5) {
80 + ie.bytes.length);
82 ByteBuffer data = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN);
116 public void from(InformationElement ie) {
117 if (ie.id != InformationElement.EID_HT_OPERATION) {
118 throw new IllegalArgumentException("Element id is not HT_OPERATION, : " + ie.id);
120 secondChannelOffset = ie.bytes[1] & 0x3;
150 public void from(InformationElement ie) {
151 if (ie.id != InformationElement.EID_VHT_OPERATION) {
152 throw new IllegalArgumentException("Element id is not VHT_OPERATION, : " + ie.id);
154 channelMode = ie.bytes[0] & Constants.BYTE_MASK;
155 centerFreqIndex1 = ie.bytes[1] & Constants.BYTE_MASK;
156 centerFreqIndex2 = ie.bytes[2] & Constants.BYTE_MASK;
167 public void from(InformationElement ie) {
168 if (ie.id != InformationElement.EID_INTERWORKING) {
169 throw new IllegalArgumentException("Element id is not INTERWORKING, : " + ie.id);
171 ByteBuffer data = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN);
176 if (ie.bytes.length == 3 || ie.bytes.length == 9) {
187 } else if (ie.bytes.length != 1 && ie.bytes.length != 7) {
189 + ie.bytes.length);
191 if (ie.bytes.length == 7 || ie.bytes.length == 9) {
201 public void from(InformationElement ie) {
202 if (ie.id != InformationElement.EID_ROAMING_CONSORTIUM) {
204 + ie.id);
206 ByteBuffer data = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN);
212 int oi3Length = ie.bytes.length - 2 - oi1Length - oi2Length;
245 public void from(InformationElement ie) {
246 ByteBuffer data = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN);
247 if (ie.bytes.length >= 5 && data.getInt() == Constants.HS20_FRAME_PREFIX) {
261 if (ie.bytes.length < 7) {
263 "HS20 indication element too short: " + ie.bytes.length);
290 public void from(InformationElement ie) {
291 ByteBuffer data = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN);
293 Constants.getInteger(data, ByteOrder.LITTLE_ENDIAN, ie.bytes.length);
297 if (ie.bytes.length < index + 1) {
300 is80211McRTTResponder = (ie.bytes[index] & ((byte) 0x1 << offset)) != 0;
347 private static String parseRsnElement(InformationElement ie) {
348 ByteBuffer buf = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN);
424 private static boolean isWpaOneElement(InformationElement ie) {
425 ByteBuffer buf = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN);
448 private static String parseWpaOneElement(InformationElement ie) {
449 ByteBuffer buf = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN);
533 for (InformationElement ie : ies) {
534 if (ie.id == InformationElement.EID_RSN) {
536 capabilities += parseRsnElement(ie);
539 if (ie.id == InformationElement.EID_VSA) {
540 if (isWpaOneElement(ie)) {
542 capabilities += parseWpaOneElement(ie);
589 public void from(InformationElement ie) {
591 if (ie == null || ie.bytes == null) return;
592 mLength = ie.bytes.length;
593 ByteBuffer data = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN);
732 public void from(InformationElement ie) {
734 if (ie == null || ie.bytes == null || ie.bytes.length > 8 || ie.bytes.length < 1) {
737 ByteBuffer data = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN);
739 for (int i = 0; i < ie.bytes.length; i++) {