require '_h2ph_pre.ph';

unless(defined(&_IF_WAVELAN_IEEE_H)) {
    eval 'sub _IF_WAVELAN_IEEE_H () {1;}' unless defined(&_IF_WAVELAN_IEEE_H);
    unless(defined(&SIOCSWAVELAN)) {
	if(defined(&__FreeBSD__)) {
	    eval 'sub SIOCSWAVELAN () { &SIOCSIFGENERIC;}' unless defined(&SIOCSWAVELAN);
	} else {
	    eval 'sub SIOCSWAVELAN () { &SIOCSIFASYNCMAP;}' unless defined(&SIOCSWAVELAN);
	}
    }
    unless(defined(&SIOCGWAVELAN)) {
	if(defined(&__FreeBSD__)) {
	    eval 'sub SIOCGWAVELAN () { &SIOCGIFGENERIC;}' unless defined(&SIOCGWAVELAN);
	} else {
	    eval 'sub SIOCGWAVELAN () { &SIOCGIFASYNCMAP;}' unless defined(&SIOCGWAVELAN);
	}
    }
    eval 'sub WI_MAX_DATALEN () {512;}' unless defined(&WI_MAX_DATALEN);
    eval 'sub WI_RID_IFACE_STATS () {0x0100;}' unless defined(&WI_RID_IFACE_STATS);
    eval 'sub WI_RID_MGMT_XMIT () {0x0200;}' unless defined(&WI_RID_MGMT_XMIT);
    eval 'sub WI_FCTL_VERS () {0x0002;}' unless defined(&WI_FCTL_VERS);
    eval 'sub WI_FCTL_FTYPE () {0x000c;}' unless defined(&WI_FCTL_FTYPE);
    eval 'sub WI_FCTL_STYPE () {0x00f0;}' unless defined(&WI_FCTL_STYPE);
    eval 'sub WI_FCTL_TODS () {0x0100;}' unless defined(&WI_FCTL_TODS);
    eval 'sub WI_FCTL_FROMDS () {0x0200;}' unless defined(&WI_FCTL_FROMDS);
    eval 'sub WI_FCTL_MOREFRAGS () {0x0400;}' unless defined(&WI_FCTL_MOREFRAGS);
    eval 'sub WI_FCTL_RETRY () {0x0800;}' unless defined(&WI_FCTL_RETRY);
    eval 'sub WI_FCTL_PM () {0x1000;}' unless defined(&WI_FCTL_PM);
    eval 'sub WI_FCTL_MOREDATA () {0x2000;}' unless defined(&WI_FCTL_MOREDATA);
    eval 'sub WI_FCTL_WEP () {0x4000;}' unless defined(&WI_FCTL_WEP);
    eval 'sub WI_FCTL_ORDER () {0x8000;}' unless defined(&WI_FCTL_ORDER);
    eval 'sub WI_FTYPE_MGMT () {0x0000;}' unless defined(&WI_FTYPE_MGMT);
    eval 'sub WI_FTYPE_CTL () {0x0004;}' unless defined(&WI_FTYPE_CTL);
    eval 'sub WI_FTYPE_DATA () {0x0008;}' unless defined(&WI_FTYPE_DATA);
    eval 'sub WI_STYPE_MGMT_ASREQ () {0x0000;}' unless defined(&WI_STYPE_MGMT_ASREQ);
    eval 'sub WI_STYPE_MGMT_ASRESP () {0x0010;}' unless defined(&WI_STYPE_MGMT_ASRESP);
    eval 'sub WI_STYPE_MGMT_REASREQ () {0x0020;}' unless defined(&WI_STYPE_MGMT_REASREQ);
    eval 'sub WI_STYPE_MGMT_REASRESP () {0x0030;}' unless defined(&WI_STYPE_MGMT_REASRESP);
    eval 'sub WI_STYPE_MGMT_PROBEREQ () {0x0040;}' unless defined(&WI_STYPE_MGMT_PROBEREQ);
    eval 'sub WI_STYPE_MGMT_PROBERESP () {0x0050;}' unless defined(&WI_STYPE_MGMT_PROBERESP);
    eval 'sub WI_STYPE_MGMT_BEACON () {0x0080;}' unless defined(&WI_STYPE_MGMT_BEACON);
    eval 'sub WI_STYPE_MGMT_ATIM () {0x0090;}' unless defined(&WI_STYPE_MGMT_ATIM);
    eval 'sub WI_STYPE_MGMT_DISAS () {0x00a0;}' unless defined(&WI_STYPE_MGMT_DISAS);
    eval 'sub WI_STYPE_MGMT_AUTH () {0x00b0;}' unless defined(&WI_STYPE_MGMT_AUTH);
    eval 'sub WI_STYPE_MGMT_DEAUTH () {0x00c0;}' unless defined(&WI_STYPE_MGMT_DEAUTH);
    if((defined( &__FreeBSD__)  && !defined( &KERNEL)) || (!defined( &__FreeBSD__)  && !defined( &_KERNEL))) {
	eval 'sub WI_RID_DNLD_BUF () {0xfd01;}' unless defined(&WI_RID_DNLD_BUF);
	eval 'sub WI_RID_MEMSZ () {0xfd02;}' unless defined(&WI_RID_MEMSZ);
	eval 'sub WI_RID_DOMAINS () {0xfd11;}' unless defined(&WI_RID_DOMAINS);
	eval 'sub WI_RID_CIS () {0xfd13;}' unless defined(&WI_RID_CIS);
	eval 'sub WI_RID_COMMQUAL () {0xfd43;}' unless defined(&WI_RID_COMMQUAL);
	eval 'sub WI_RID_SCALETHRESH () {0xfd46;}' unless defined(&WI_RID_SCALETHRESH);
	eval 'sub WI_RID_PCF () {0xfd87;}' unless defined(&WI_RID_PCF);
	eval 'sub WI_RID_PORTTYPE () {0xfc00;}' unless defined(&WI_RID_PORTTYPE);
	eval 'sub WI_RID_MAC_NODE () {0xfc01;}' unless defined(&WI_RID_MAC_NODE);
	eval 'sub WI_RID_DESIRED_SSID () {0xfc02;}' unless defined(&WI_RID_DESIRED_SSID);
	eval 'sub WI_RID_OWN_CHNL () {0xfc03;}' unless defined(&WI_RID_OWN_CHNL);
	eval 'sub WI_RID_OWN_SSID () {0xfc04;}' unless defined(&WI_RID_OWN_SSID);
	eval 'sub WI_RID_OWN_ATIM_WIN () {0xfc05;}' unless defined(&WI_RID_OWN_ATIM_WIN);
	eval 'sub WI_RID_SYSTEM_SCALE () {0xfc06;}' unless defined(&WI_RID_SYSTEM_SCALE);
	eval 'sub WI_RID_MAX_DATALEN () {0xfc07;}' unless defined(&WI_RID_MAX_DATALEN);
	eval 'sub WI_RID_MAC_WDS () {0xfc08;}' unless defined(&WI_RID_MAC_WDS);
	eval 'sub WI_RID_PM_ENABLED () {0xfc09;}' unless defined(&WI_RID_PM_ENABLED);
	eval 'sub WI_RID_PM_EPS () {0xfc0a;}' unless defined(&WI_RID_PM_EPS);
	eval 'sub WI_RID_MCAST_RX () {0xfc0b;}' unless defined(&WI_RID_MCAST_RX);
	eval 'sub WI_RID_MAX_SLEEP () {0xfc0c;}' unless defined(&WI_RID_MAX_SLEEP);
	eval 'sub WI_RID_HOLDOVER () {0xfc0d;}' unless defined(&WI_RID_HOLDOVER);
	eval 'sub WI_RID_NODENAME () {0xfc0e;}' unless defined(&WI_RID_NODENAME);
	eval 'sub WI_RID_DTIM_PERIOD () {0xfc10;}' unless defined(&WI_RID_DTIM_PERIOD);
	eval 'sub WI_RID_WDS_ADDR1 () {0xfc11;}' unless defined(&WI_RID_WDS_ADDR1);
	eval 'sub WI_RID_WDS_ADDR2 () {0xfc12;}' unless defined(&WI_RID_WDS_ADDR2);
	eval 'sub WI_RID_WDS_ADDR3 () {0xfc13;}' unless defined(&WI_RID_WDS_ADDR3);
	eval 'sub WI_RID_WDS_ADDR4 () {0xfc14;}' unless defined(&WI_RID_WDS_ADDR4);
	eval 'sub WI_RID_WDS_ADDR5 () {0xfc15;}' unless defined(&WI_RID_WDS_ADDR5);
	eval 'sub WI_RID_WDS_ADDR6 () {0xfc16;}' unless defined(&WI_RID_WDS_ADDR6);
	eval 'sub WI_RID_MCAST_PM_BUF () {0xfc17;}' unless defined(&WI_RID_MCAST_PM_BUF);
	eval 'sub WI_RID_ENCRYPTION () {0xfc20;}' unless defined(&WI_RID_ENCRYPTION);
	eval 'sub WI_RID_AUTHTYPE () {0xfc21;}' unless defined(&WI_RID_AUTHTYPE);
	eval 'sub WI_RID_MCAST_LIST () {0xfc80;}' unless defined(&WI_RID_MCAST_LIST);
	eval 'sub WI_RID_CREATE_IBSS () {0xfc81;}' unless defined(&WI_RID_CREATE_IBSS);
	eval 'sub WI_RID_FRAG_THRESH () {0xfc82;}' unless defined(&WI_RID_FRAG_THRESH);
	eval 'sub WI_RID_RTS_THRESH () {0xfc83;}' unless defined(&WI_RID_RTS_THRESH);
	eval 'sub WI_RID_TX_RATE () {0xfc84;}' unless defined(&WI_RID_TX_RATE);
	eval 'sub WI_RID_PROMISC () {0xfc85;}' unless defined(&WI_RID_PROMISC);
	eval 'sub WI_RID_FRAG_THRESH0 () {0xfc90;}' unless defined(&WI_RID_FRAG_THRESH0);
	eval 'sub WI_RID_FRAG_THRESH1 () {0xfc91;}' unless defined(&WI_RID_FRAG_THRESH1);
	eval 'sub WI_RID_FRAG_THRESH2 () {0xfc92;}' unless defined(&WI_RID_FRAG_THRESH2);
	eval 'sub WI_RID_FRAG_THRESH3 () {0xfc93;}' unless defined(&WI_RID_FRAG_THRESH3);
	eval 'sub WI_RID_FRAG_THRESH4 () {0xfc94;}' unless defined(&WI_RID_FRAG_THRESH4);
	eval 'sub WI_RID_FRAG_THRESH5 () {0xfc95;}' unless defined(&WI_RID_FRAG_THRESH5);
	eval 'sub WI_RID_FRAG_THRESH6 () {0xfc96;}' unless defined(&WI_RID_FRAG_THRESH6);
	eval 'sub WI_RID_RTS_THRESH0 () {0xfc97;}' unless defined(&WI_RID_RTS_THRESH0);
	eval 'sub WI_RID_RTS_THRESH1 () {0xfc98;}' unless defined(&WI_RID_RTS_THRESH1);
	eval 'sub WI_RID_RTS_THRESH2 () {0xfc99;}' unless defined(&WI_RID_RTS_THRESH2);
	eval 'sub WI_RID_RTS_THRESH3 () {0xfc9a;}' unless defined(&WI_RID_RTS_THRESH3);
	eval 'sub WI_RID_RTS_THRESH4 () {0xfc9b;}' unless defined(&WI_RID_RTS_THRESH4);
	eval 'sub WI_RID_RTS_THRESH5 () {0xfc9c;}' unless defined(&WI_RID_RTS_THRESH5);
	eval 'sub WI_RID_RTS_THRESH6 () {0xfc9d;}' unless defined(&WI_RID_RTS_THRESH6);
	eval 'sub WI_RID_TX_RATE0 () {0xfc9e;}' unless defined(&WI_RID_TX_RATE0);
	eval 'sub WI_RID_TX_RATE1 () {0xfc9f;}' unless defined(&WI_RID_TX_RATE1);
	eval 'sub WI_RID_TX_RATE2 () {0xfca0;}' unless defined(&WI_RID_TX_RATE2);
	eval 'sub WI_RID_TX_RATE3 () {0xfca1;}' unless defined(&WI_RID_TX_RATE3);
	eval 'sub WI_RID_TX_RATE4 () {0xfca2;}' unless defined(&WI_RID_TX_RATE4);
	eval 'sub WI_RID_TX_RATE5 () {0xfca3;}' unless defined(&WI_RID_TX_RATE5);
	eval 'sub WI_RID_TX_RATE6 () {0xfca4;}' unless defined(&WI_RID_TX_RATE6);
	eval 'sub WI_RID_DEFLT_CRYPT_KEYS () {0xfcb0;}' unless defined(&WI_RID_DEFLT_CRYPT_KEYS);
	eval 'sub WI_RID_TX_CRYPT_KEY () {0xfcb1;}' unless defined(&WI_RID_TX_CRYPT_KEY);
	eval 'sub WI_RID_TICK_TIME () {0xfce0;}' unless defined(&WI_RID_TICK_TIME);
	eval 'sub WI_RID_FIRM_ID () {0xfd02;}' unless defined(&WI_RID_FIRM_ID);
	eval 'sub WI_RID_PRI_SUP_RANGE () {0xfd03;}' unless defined(&WI_RID_PRI_SUP_RANGE);
	eval 'sub WI_RID_CIF_ACT_RANGE () {0xfd04;}' unless defined(&WI_RID_CIF_ACT_RANGE);
	eval 'sub WI_RID_SERIALNO () {0xfd0a;}' unless defined(&WI_RID_SERIALNO);
	eval 'sub WI_RID_CARD_ID () {0xfd0b;}' unless defined(&WI_RID_CARD_ID);
	eval 'sub WI_RID_MFI_SUP_RANGE () {0xfd0c;}' unless defined(&WI_RID_MFI_SUP_RANGE);
	eval 'sub WI_RID_CFI_SUP_RANGE () {0xfd0d;}' unless defined(&WI_RID_CFI_SUP_RANGE);
	eval 'sub WI_RID_CHANNEL_LIST () {0xfd10;}' unless defined(&WI_RID_CHANNEL_LIST);
	eval 'sub WI_RID_REG_DOMAINS () {0xfd11;}' unless defined(&WI_RID_REG_DOMAINS);
	eval 'sub WI_RID_TEMP_TYPE () {0xfd12;}' unless defined(&WI_RID_TEMP_TYPE);
	eval 'sub WI_RID_CIS () {0xfd13;}' unless defined(&WI_RID_CIS);
	eval 'sub WI_RID_STA_IDENEITY () {0xfd20;}' unless defined(&WI_RID_STA_IDENEITY);
	eval 'sub WI_RID_STA_SUP_RANGE () {0xfd21;}' unless defined(&WI_RID_STA_SUP_RANGE);
	eval 'sub WI_RID_MFI_ACT_RANGE () {0xfd22;}' unless defined(&WI_RID_MFI_ACT_RANGE);
	eval 'sub WI_RID_CFI_ACT_RANGE () {0xfd33;}' unless defined(&WI_RID_CFI_ACT_RANGE);
	eval 'sub WI_RID_PORT_STAT () {0xfd40;}' unless defined(&WI_RID_PORT_STAT);
	eval 'sub WI_RID_CURRENT_SSID () {0xfd41;}' unless defined(&WI_RID_CURRENT_SSID);
	eval 'sub WI_RID_CURRENT_BSSID () {0xfd42;}' unless defined(&WI_RID_CURRENT_BSSID);
	eval 'sub WI_RID_COMMS_QUALITY () {0xfd43;}' unless defined(&WI_RID_COMMS_QUALITY);
	eval 'sub WI_RID_CUR_TX_RATE () {0xfd44;}' unless defined(&WI_RID_CUR_TX_RATE);
	eval 'sub WI_RID_OWN_BEACON_INT () {0xfd45;}' unless defined(&WI_RID_OWN_BEACON_INT);
	eval 'sub WI_RID_CUR_SCALE_THRESH () {0xfd46;}' unless defined(&WI_RID_CUR_SCALE_THRESH);
	eval 'sub WI_RID_PROT_RESP_TIME () {0xfd47;}' unless defined(&WI_RID_PROT_RESP_TIME);
	eval 'sub WI_RID_SHORT_RTR_LIM () {0xfd48;}' unless defined(&WI_RID_SHORT_RTR_LIM);
	eval 'sub WI_RID_LONG_RTS_LIM () {0xfd49;}' unless defined(&WI_RID_LONG_RTS_LIM);
	eval 'sub WI_RID_MAX_TX_LIFE () {0xfd4a;}' unless defined(&WI_RID_MAX_TX_LIFE);
	eval 'sub WI_RID_MAX_RX_LIFE () {0xfd4b;}' unless defined(&WI_RID_MAX_RX_LIFE);
	eval 'sub WI_RID_CF_POLL () {0xfd4c;}' unless defined(&WI_RID_CF_POLL);
	eval 'sub WI_RID_AUTH_ALGS () {0xfd4d;}' unless defined(&WI_RID_AUTH_ALGS);
	eval 'sub WI_RID_AUTH_TYPE () {0xfd4e;}' unless defined(&WI_RID_AUTH_TYPE);
	eval 'sub WI_RID_WEP_AVAIL () {0xfd4f;}' unless defined(&WI_RID_WEP_AVAIL);
	eval 'sub WI_RID_CUR_TX_RATE1 () {0xfd80;}' unless defined(&WI_RID_CUR_TX_RATE1);
	eval 'sub WI_RID_CUR_TX_RATE2 () {0xfd81;}' unless defined(&WI_RID_CUR_TX_RATE2);
	eval 'sub WI_RID_CUR_TX_RATE3 () {0xfd82;}' unless defined(&WI_RID_CUR_TX_RATE3);
	eval 'sub WI_RID_CUR_TX_RATE4 () {0xfd83;}' unless defined(&WI_RID_CUR_TX_RATE4);
	eval 'sub WI_RID_CUR_TX_RATE5 () {0xfd84;}' unless defined(&WI_RID_CUR_TX_RATE5);
	eval 'sub WI_RID_CUR_TX_RATE6 () {0xfd85;}' unless defined(&WI_RID_CUR_TX_RATE6);
	eval 'sub WI_RID_OWN_MAC () {0xfd86;}' unless defined(&WI_RID_OWN_MAC);
	eval 'sub WI_RID_PCI_INFO () {0xfd87;}' unless defined(&WI_RID_PCI_INFO);
	eval 'sub WI_RID_PHY_TYPE () {0xfdc0;}' unless defined(&WI_RID_PHY_TYPE);
	eval 'sub WI_RID_CURRENT_CHAN () {0xfdc1;}' unless defined(&WI_RID_CURRENT_CHAN);
	eval 'sub WI_RID_PWR_STATE () {0xfdc2;}' unless defined(&WI_RID_PWR_STATE);
	eval 'sub WI_RID_CCA_MODE () {0xfdc3;}' unless defined(&WI_RID_CCA_MODE);
	eval 'sub WI_RID_CCA_TIME () {0xfdc4;}' unless defined(&WI_RID_CCA_TIME);
	eval 'sub WI_RID_MAC_PROC_DELAY () {0xfdc5;}' unless defined(&WI_RID_MAC_PROC_DELAY);
	eval 'sub WI_RID_DATA_RATES () {0xfdc6;}' unless defined(&WI_RID_DATA_RATES);
    }
}
1;
