require '_h2ph_pre.ph';

unless(defined(&_LINUX_WIRELESS_H)) {
    eval 'sub _LINUX_WIRELESS_H () {1;}' unless defined(&_LINUX_WIRELESS_H);
    require 'linux/types.ph';
    require 'linux/socket.ph';
    require 'linux/if.ph';
    eval 'sub WIRELESS_EXT () {15;}' unless defined(&WIRELESS_EXT);
    eval 'sub SIOCSIWCOMMIT () {0x8b00;}' unless defined(&SIOCSIWCOMMIT);
    eval 'sub SIOCGIWNAME () {0x8b01;}' unless defined(&SIOCGIWNAME);
    eval 'sub SIOCSIWNWID () {0x8b02;}' unless defined(&SIOCSIWNWID);
    eval 'sub SIOCGIWNWID () {0x8b03;}' unless defined(&SIOCGIWNWID);
    eval 'sub SIOCSIWFREQ () {0x8b04;}' unless defined(&SIOCSIWFREQ);
    eval 'sub SIOCGIWFREQ () {0x8b05;}' unless defined(&SIOCGIWFREQ);
    eval 'sub SIOCSIWMODE () {0x8b06;}' unless defined(&SIOCSIWMODE);
    eval 'sub SIOCGIWMODE () {0x8b07;}' unless defined(&SIOCGIWMODE);
    eval 'sub SIOCSIWSENS () {0x8b08;}' unless defined(&SIOCSIWSENS);
    eval 'sub SIOCGIWSENS () {0x8b09;}' unless defined(&SIOCGIWSENS);
    eval 'sub SIOCSIWRANGE () {0x8b0a;}' unless defined(&SIOCSIWRANGE);
    eval 'sub SIOCGIWRANGE () {0x8b0b;}' unless defined(&SIOCGIWRANGE);
    eval 'sub SIOCSIWPRIV () {0x8b0c;}' unless defined(&SIOCSIWPRIV);
    eval 'sub SIOCGIWPRIV () {0x8b0d;}' unless defined(&SIOCGIWPRIV);
    eval 'sub SIOCSIWSTATS () {0x8b0e;}' unless defined(&SIOCSIWSTATS);
    eval 'sub SIOCGIWSTATS () {0x8b0f;}' unless defined(&SIOCGIWSTATS);
    eval 'sub SIOCSIWSPY () {0x8b10;}' unless defined(&SIOCSIWSPY);
    eval 'sub SIOCGIWSPY () {0x8b11;}' unless defined(&SIOCGIWSPY);
    eval 'sub SIOCSIWAP () {0x8b14;}' unless defined(&SIOCSIWAP);
    eval 'sub SIOCGIWAP () {0x8b15;}' unless defined(&SIOCGIWAP);
    eval 'sub SIOCGIWAPLIST () {0x8b17;}' unless defined(&SIOCGIWAPLIST);
    eval 'sub SIOCSIWSCAN () {0x8b18;}' unless defined(&SIOCSIWSCAN);
    eval 'sub SIOCGIWSCAN () {0x8b19;}' unless defined(&SIOCGIWSCAN);
    eval 'sub SIOCSIWESSID () {0x8b1a;}' unless defined(&SIOCSIWESSID);
    eval 'sub SIOCGIWESSID () {0x8b1b;}' unless defined(&SIOCGIWESSID);
    eval 'sub SIOCSIWNICKN () {0x8b1c;}' unless defined(&SIOCSIWNICKN);
    eval 'sub SIOCGIWNICKN () {0x8b1d;}' unless defined(&SIOCGIWNICKN);
    eval 'sub SIOCSIWRATE () {0x8b20;}' unless defined(&SIOCSIWRATE);
    eval 'sub SIOCGIWRATE () {0x8b21;}' unless defined(&SIOCGIWRATE);
    eval 'sub SIOCSIWRTS () {0x8b22;}' unless defined(&SIOCSIWRTS);
    eval 'sub SIOCGIWRTS () {0x8b23;}' unless defined(&SIOCGIWRTS);
    eval 'sub SIOCSIWFRAG () {0x8b24;}' unless defined(&SIOCSIWFRAG);
    eval 'sub SIOCGIWFRAG () {0x8b25;}' unless defined(&SIOCGIWFRAG);
    eval 'sub SIOCSIWTXPOW () {0x8b26;}' unless defined(&SIOCSIWTXPOW);
    eval 'sub SIOCGIWTXPOW () {0x8b27;}' unless defined(&SIOCGIWTXPOW);
    eval 'sub SIOCSIWRETRY () {0x8b28;}' unless defined(&SIOCSIWRETRY);
    eval 'sub SIOCGIWRETRY () {0x8b29;}' unless defined(&SIOCGIWRETRY);
    eval 'sub SIOCSIWENCODE () {0x8b2a;}' unless defined(&SIOCSIWENCODE);
    eval 'sub SIOCGIWENCODE () {0x8b2b;}' unless defined(&SIOCGIWENCODE);
    eval 'sub SIOCSIWPOWER () {0x8b2c;}' unless defined(&SIOCSIWPOWER);
    eval 'sub SIOCGIWPOWER () {0x8b2d;}' unless defined(&SIOCGIWPOWER);
    eval 'sub SIOCIWFIRSTPRIV () {0x8be0;}' unless defined(&SIOCIWFIRSTPRIV);
    eval 'sub SIOCIWLASTPRIV () {0x8bff;}' unless defined(&SIOCIWLASTPRIV);
    eval 'sub SIOCIWFIRST () {0x8b00;}' unless defined(&SIOCIWFIRST);
    eval 'sub SIOCIWLAST () { &SIOCIWLASTPRIV;}' unless defined(&SIOCIWLAST);
    eval 'sub IW_IS_SET {
        local($cmd) = @_;
	    eval q((!(($cmd) & 0x1)));
    }' unless defined(&IW_IS_SET);
    eval 'sub IW_IS_GET {
        local($cmd) = @_;
	    eval q((($cmd) & 0x1));
    }' unless defined(&IW_IS_GET);
    eval 'sub IWEVTXDROP () {0x8c00;}' unless defined(&IWEVTXDROP);
    eval 'sub IWEVQUAL () {0x8c01;}' unless defined(&IWEVQUAL);
    eval 'sub IWEVCUSTOM () {0x8c02;}' unless defined(&IWEVCUSTOM);
    eval 'sub IWEVREGISTERED () {0x8c03;}' unless defined(&IWEVREGISTERED);
    eval 'sub IWEVEXPIRED () {0x8c04;}' unless defined(&IWEVEXPIRED);
    eval 'sub IWEVFIRST () {0x8c00;}' unless defined(&IWEVFIRST);
    eval 'sub IW_PRIV_TYPE_MASK () {0x7000;}' unless defined(&IW_PRIV_TYPE_MASK);
    eval 'sub IW_PRIV_TYPE_NONE () {0x;}' unless defined(&IW_PRIV_TYPE_NONE);
    eval 'sub IW_PRIV_TYPE_BYTE () {0x1000;}' unless defined(&IW_PRIV_TYPE_BYTE);
    eval 'sub IW_PRIV_TYPE_CHAR () {0x2000;}' unless defined(&IW_PRIV_TYPE_CHAR);
    eval 'sub IW_PRIV_TYPE_INT () {0x4000;}' unless defined(&IW_PRIV_TYPE_INT);
    eval 'sub IW_PRIV_TYPE_FLOAT () {0x5000;}' unless defined(&IW_PRIV_TYPE_FLOAT);
    eval 'sub IW_PRIV_TYPE_ADDR () {0x6000;}' unless defined(&IW_PRIV_TYPE_ADDR);
    eval 'sub IW_PRIV_SIZE_FIXED () {0x800;}' unless defined(&IW_PRIV_SIZE_FIXED);
    eval 'sub IW_PRIV_SIZE_MASK () {0x7ff;}' unless defined(&IW_PRIV_SIZE_MASK);
    eval 'sub IW_MAX_FREQUENCIES () {16;}' unless defined(&IW_MAX_FREQUENCIES);
    eval 'sub IW_MAX_BITRATES () {8;}' unless defined(&IW_MAX_BITRATES);
    eval 'sub IW_MAX_TXPOWER () {8;}' unless defined(&IW_MAX_TXPOWER);
    eval 'sub IW_MAX_SPY () {8;}' unless defined(&IW_MAX_SPY);
    eval 'sub IW_MAX_GET_SPY () {64;}' unless defined(&IW_MAX_GET_SPY);
    eval 'sub IW_MAX_AP () {64;}' unless defined(&IW_MAX_AP);
    eval 'sub IW_ESSID_MAX_SIZE () {32;}' unless defined(&IW_ESSID_MAX_SIZE);
    eval 'sub IW_MODE_AUTO () {0;}' unless defined(&IW_MODE_AUTO);
    eval 'sub IW_MODE_ADHOC () {1;}' unless defined(&IW_MODE_ADHOC);
    eval 'sub IW_MODE_INFRA () {2;}' unless defined(&IW_MODE_INFRA);
    eval 'sub IW_MODE_MASTER () {3;}' unless defined(&IW_MODE_MASTER);
    eval 'sub IW_MODE_REPEAT () {4;}' unless defined(&IW_MODE_REPEAT);
    eval 'sub IW_MODE_SECOND () {5;}' unless defined(&IW_MODE_SECOND);
    eval 'sub IW_MODE_MONITOR () {6;}' unless defined(&IW_MODE_MONITOR);
    eval 'sub IW_MAX_ENCODING_SIZES () {8;}' unless defined(&IW_MAX_ENCODING_SIZES);
    eval 'sub IW_ENCODING_TOKEN_MAX () {32;}' unless defined(&IW_ENCODING_TOKEN_MAX);
    eval 'sub IW_ENCODE_INDEX () {0xff;}' unless defined(&IW_ENCODE_INDEX);
    eval 'sub IW_ENCODE_FLAGS () {0xff00;}' unless defined(&IW_ENCODE_FLAGS);
    eval 'sub IW_ENCODE_MODE () {0xf000;}' unless defined(&IW_ENCODE_MODE);
    eval 'sub IW_ENCODE_DISABLED () {0x8000;}' unless defined(&IW_ENCODE_DISABLED);
    eval 'sub IW_ENCODE_ENABLED () {0x;}' unless defined(&IW_ENCODE_ENABLED);
    eval 'sub IW_ENCODE_RESTRICTED () {0x4000;}' unless defined(&IW_ENCODE_RESTRICTED);
    eval 'sub IW_ENCODE_OPEN () {0x2000;}' unless defined(&IW_ENCODE_OPEN);
    eval 'sub IW_ENCODE_NOKEY () {0x800;}' unless defined(&IW_ENCODE_NOKEY);
    eval 'sub IW_POWER_ON () {0x;}' unless defined(&IW_POWER_ON);
    eval 'sub IW_POWER_TYPE () {0xf000;}' unless defined(&IW_POWER_TYPE);
    eval 'sub IW_POWER_PERIOD () {0x1000;}' unless defined(&IW_POWER_PERIOD);
    eval 'sub IW_POWER_TIMEOUT () {0x2000;}' unless defined(&IW_POWER_TIMEOUT);
    eval 'sub IW_POWER_MODE () {0xf00;}' unless defined(&IW_POWER_MODE);
    eval 'sub IW_POWER_UNICAST_R () {0x100;}' unless defined(&IW_POWER_UNICAST_R);
    eval 'sub IW_POWER_MULTICAST_R () {0x200;}' unless defined(&IW_POWER_MULTICAST_R);
    eval 'sub IW_POWER_ALL_R () {0x300;}' unless defined(&IW_POWER_ALL_R);
    eval 'sub IW_POWER_FORCE_S () {0x400;}' unless defined(&IW_POWER_FORCE_S);
    eval 'sub IW_POWER_REPEATER () {0x800;}' unless defined(&IW_POWER_REPEATER);
    eval 'sub IW_POWER_MODIFIER () {0xf;}' unless defined(&IW_POWER_MODIFIER);
    eval 'sub IW_POWER_MIN () {0x1;}' unless defined(&IW_POWER_MIN);
    eval 'sub IW_POWER_MAX () {0x2;}' unless defined(&IW_POWER_MAX);
    eval 'sub IW_POWER_RELATIVE () {0x4;}' unless defined(&IW_POWER_RELATIVE);
    eval 'sub IW_TXPOW_TYPE () {0xff;}' unless defined(&IW_TXPOW_TYPE);
    eval 'sub IW_TXPOW_DBM () {0x;}' unless defined(&IW_TXPOW_DBM);
    eval 'sub IW_TXPOW_MWATT () {0x1;}' unless defined(&IW_TXPOW_MWATT);
    eval 'sub IW_TXPOW_RANGE () {0x1000;}' unless defined(&IW_TXPOW_RANGE);
    eval 'sub IW_RETRY_ON () {0x;}' unless defined(&IW_RETRY_ON);
    eval 'sub IW_RETRY_TYPE () {0xf000;}' unless defined(&IW_RETRY_TYPE);
    eval 'sub IW_RETRY_LIMIT () {0x1000;}' unless defined(&IW_RETRY_LIMIT);
    eval 'sub IW_RETRY_LIFETIME () {0x2000;}' unless defined(&IW_RETRY_LIFETIME);
    eval 'sub IW_RETRY_MODIFIER () {0xf;}' unless defined(&IW_RETRY_MODIFIER);
    eval 'sub IW_RETRY_MIN () {0x1;}' unless defined(&IW_RETRY_MIN);
    eval 'sub IW_RETRY_MAX () {0x2;}' unless defined(&IW_RETRY_MAX);
    eval 'sub IW_RETRY_RELATIVE () {0x4;}' unless defined(&IW_RETRY_RELATIVE);
    eval 'sub IW_SCAN_DEFAULT () {0x;}' unless defined(&IW_SCAN_DEFAULT);
    eval 'sub IW_SCAN_ALL_ESSID () {0x1;}' unless defined(&IW_SCAN_ALL_ESSID);
    eval 'sub IW_SCAN_THIS_ESSID () {0x2;}' unless defined(&IW_SCAN_THIS_ESSID);
    eval 'sub IW_SCAN_ALL_FREQ () {0x4;}' unless defined(&IW_SCAN_ALL_FREQ);
    eval 'sub IW_SCAN_THIS_FREQ () {0x8;}' unless defined(&IW_SCAN_THIS_FREQ);
    eval 'sub IW_SCAN_ALL_MODE () {0x10;}' unless defined(&IW_SCAN_ALL_MODE);
    eval 'sub IW_SCAN_THIS_MODE () {0x20;}' unless defined(&IW_SCAN_THIS_MODE);
    eval 'sub IW_SCAN_ALL_RATE () {0x40;}' unless defined(&IW_SCAN_ALL_RATE);
    eval 'sub IW_SCAN_THIS_RATE () {0x80;}' unless defined(&IW_SCAN_THIS_RATE);
    eval 'sub IW_SCAN_MAX_DATA () {4096;}' unless defined(&IW_SCAN_MAX_DATA);
    eval 'sub IW_CUSTOM_MAX () {256;}' unless defined(&IW_CUSTOM_MAX);
    eval 'sub IW_EV_LCP_LEN () {($sizeof{\'struct iw_event\'} - $sizeof{\'union iwreq_data\'});}' unless defined(&IW_EV_LCP_LEN);
    eval 'sub IW_EV_CHAR_LEN () {( &IW_EV_LCP_LEN +  &IFNAMSIZ);}' unless defined(&IW_EV_CHAR_LEN);
    eval 'sub IW_EV_UINT_LEN () {( &IW_EV_LCP_LEN + $sizeof{ &__u32});}' unless defined(&IW_EV_UINT_LEN);
    eval 'sub IW_EV_FREQ_LEN () {( &IW_EV_LCP_LEN + $sizeof{\'struct iw_freq\'});}' unless defined(&IW_EV_FREQ_LEN);
    eval 'sub IW_EV_POINT_LEN () {( &IW_EV_LCP_LEN + $sizeof{\'struct iw_point\'});}' unless defined(&IW_EV_POINT_LEN);
    eval 'sub IW_EV_PARAM_LEN () {( &IW_EV_LCP_LEN + $sizeof{\'struct iw_param\'});}' unless defined(&IW_EV_PARAM_LEN);
    eval 'sub IW_EV_ADDR_LEN () {( &IW_EV_LCP_LEN + $sizeof{\'struct sockaddr\'});}' unless defined(&IW_EV_ADDR_LEN);
    eval 'sub IW_EV_QUAL_LEN () {( &IW_EV_LCP_LEN + $sizeof{\'struct iw_quality\'});}' unless defined(&IW_EV_QUAL_LEN);
}
1;
