#elif defined(__ECOS) #include <cyg/io/eth/rltk/819x/wlan/ieee802_mib.h> #endif #include "./8192cd_headers.h" #include "./8192cd_debug.h" #include "./8192cd_mib.h" #ifdef TXPWR_LMT extern int _convert_2_pwr_dot(char *s, int base); #endif extern int _atoi(char *s, int base); struct mib_val dot11_mib_table[]={ //dot11StationConfigTable { {1, 1, 1, 1, 1, -1}, "dot11StationID", MIB_TYPE_PRIV, PRIV_OFFSET(dot11OperationEntry.hwaddr), PRIV_SIZE(dot11OperationEntry.hwaddr)}, { {1, 1, 1, 2, 1, -1}, "dot11MediumOccupancyLimit ", MIB_TYPE_VAL, 100, 1}, { {1, 1, 1, 3, 1, -1}, "dot11CFPollable", MIB_TYPE_VAL, 0, 1}, { {1, 1, 1, 4, 1, -1}, "dot11CFPPeriod", MIB_TYPE_VAL, 0, 1}, { {1, 1, 1, 5, 1, -1}, "dot11CFPMaxDuration", MIB_TYPE_VAL, 0, 1}, { {1, 1, 1, 6, 1, -1}, "dot11AuthenticationResponseTimeOut", MIB_TYPE_VAL, REAUTH_TO*10, 4}, { {1, 1, 1, 7, 1, -1}, "dot11PrivacyOptionImplemented", MIB_TYPE_VAL, 1, 1}, { {1, 1, 1, 8, 1, -1}, "dot11PowerManagementMode", MIB_TYPE_VAL, 1, 1}, { {1, 1, 1, 9, 1, -1}, "dot11DesiredSSID", MIB_TYPE_PRIV, PRIV_OFFSET(dot11StationConfigEntry.dot11DesiredSSID), 0}, { {1, 1, 1, 10, 1, -1}, "dot11DesiredBSSType", MIB_TYPE_SNMP, SNMP_OFFSET(dot11DesiredBSSType), SNMP_SIZE(dot11DesiredBSSType)}, { {1, 1, 1, 11, 1, -1}, "dot11OperationalRateSet", MIB_TYPE_SNMP1, SNMP_OFFSET(dot11OperationalRateSet), SNMP_OFFSET(dot11SupportedDataRatesNum)}, { {1, 1, 1, 12, 1, -1}, "dot11BeaconPeriod", MIB_TYPE_PRIV, PRIV_OFFSET(dot11StationConfigEntry.dot11BeaconPeriod), PRIV_SIZE(dot11StationConfigEntry.dot11BeaconPeriod)}, { {1, 1, 1, 13, 1, -1}, "dot11DTIMPeriod", MIB_TYPE_PRIV, PRIV_OFFSET(dot11StationConfigEntry.dot11DTIMPeriod), PRIV_SIZE(dot11StationConfigEntry.dot11DTIMPeriod)}, { {1, 1, 1, 14, 1, -1}, "dot11AssociationResponseTimeOut", MIB_TYPE_VAL, REASSOC_TO*10, 4}, { {1, 1, 1, 15, 1, -1}, "dot11DisassociateReason", MIB_TYPE_SNMP, SNMP_OFFSET(dot11DisassociateReason), SNMP_SIZE(dot11DisassociateReason)}, { {1, 1, 1, 16, 1, -1}, "dot11DisassociateStation", MIB_TYPE_SNMP, SNMP_OFFSET(dot11DisassociateStation), SNMP_SIZE(dot11DisassociateStation)},
{ .cmd = ZD_PRIV_SET_REGDOMAIN, .set_args = IW_PRIV_TYPE_BYTE | IW_PRIV_SIZE_FIXED | 1, .name = "set_regdomain", }, { .cmd = ZD_PRIV_GET_REGDOMAIN, .get_args = IW_PRIV_TYPE_BYTE | IW_PRIV_SIZE_FIXED | 1, .name = "get_regdomain", }, }; #define PRIV_OFFSET(x) [(x)-SIOCIWFIRSTPRIV] static const iw_handler zd_priv_handler[] = { PRIV_OFFSET(ZD_PRIV_SET_REGDOMAIN) = zd_set_regdomain, PRIV_OFFSET(ZD_PRIV_GET_REGDOMAIN) = zd_get_regdomain, }; static int iw_get_name(struct net_device *netdev, struct iw_request_info *info, union iwreq_data *req, char *extra) { /* FIXME: check whether 802.11a will also supported, add also * zd1211B, if we support it. */ strlcpy(req->name, "802.11g zd1211", IFNAMSIZ); return 0; } static int iw_set_freq(struct net_device *netdev,