+ if (ap_type == ATMEL12350 && ap_vendorext == EZYNET) {
+ varbinds[i].oid = UpTime;
+ varbinds[i].len_oid = sizeof(UpTime);
+ varbinds[i].value = UpTime;
+ varbinds[i].len_val = 0;
+ varbinds[i].type = NULL_VALUE;
+ i++;
+ }
+
+ if (wait_mode == WAIT_FOREVER)
+ print_help(WAIT_RET);
+
+ if (snmp(varbinds, i, GET) < i) {
+ print_helperr(ERR_RET);
+ getch();
+ goto quit;
+ }
+
+ if (wait_mode == WAIT_FOREVER)
+ print_help(QT_HELP);
+
+ mvwaddstr(main_sub, 0, 0, _("Device hardware/software/name info:"));
+ for (i = 0; i < varbinds[0].len_val && *(varbinds[0].value + i); i++)
+ mvwaddch(main_sub, 1, i + 1, *(varbinds[0].value + i));
+
+ if (varbinds[1].len_val == 128) {
+ memcpy(&str128, varbinds[1].value,
+ sizeof(struct sysDeviceInfo_128));
+ ap_sversion = str128.StructVersion;
+ ap_macaddr = str128.MacAddress;
+ ap_regdomain = swap4(str128.RegulatoryDomain);
+ ap_prodtype = str128.ProductType;
+ ap_oemname = str128.OEMName;
+ ap_oemid = str128.OEMID;
+ ap_prodname = str128.ProductName;
+ ap_hwrev = str128.HardwareRevision;
+ } else { /* varbinds[1].len_val == 160 */
+ memcpy(&str160, varbinds[1].value,
+ sizeof(struct sysDeviceInfo_160));
+ ap_regdomain = str160.RegulatoryDomain;
+ ap_sversion = str160.StructVersion;
+ ap_macaddr = str160.MacAddress;
+ ap_prodtype = str160.ProductType;
+ ap_oemname = str160.OEMName;
+ ap_oemid = str160.OEMID;
+ ap_prodname = str160.ProductName;
+ ap_hwrev = str160.HardwareRevision;
+ }
+
+ sprintf(message, _("Operational mode: %s"),
+ bridge_modes[*(varbinds[2].value) - 1]);
+ mvwaddstr(main_sub, 2, 0, message);
+
+ sprintf(message, "%s%02X%02X%02X%02X%02X%02X", MAC,