require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_NET_IF_IEEE80211RADIOTAP_H_)) {
    eval 'sub _NET_IF_IEEE80211RADIOTAP_H_ () {1;}' unless defined(&_NET_IF_IEEE80211RADIOTAP_H_);
    eval 'sub IEEE80211_RADIOTAP_HDRLEN () {64;}' unless defined(&IEEE80211_RADIOTAP_HDRLEN);
    eval("sub IEEE80211_RADIOTAP_TSFT () { 0; }") unless defined(&IEEE80211_RADIOTAP_TSFT);
    eval("sub IEEE80211_RADIOTAP_FLAGS () { 1; }") unless defined(&IEEE80211_RADIOTAP_FLAGS);
    eval("sub IEEE80211_RADIOTAP_RATE () { 2; }") unless defined(&IEEE80211_RADIOTAP_RATE);
    eval("sub IEEE80211_RADIOTAP_CHANNEL () { 3; }") unless defined(&IEEE80211_RADIOTAP_CHANNEL);
    eval("sub IEEE80211_RADIOTAP_FHSS () { 4; }") unless defined(&IEEE80211_RADIOTAP_FHSS);
    eval("sub IEEE80211_RADIOTAP_DBM_ANTSIGNAL () { 5; }") unless defined(&IEEE80211_RADIOTAP_DBM_ANTSIGNAL);
    eval("sub IEEE80211_RADIOTAP_DBM_ANTNOISE () { 6; }") unless defined(&IEEE80211_RADIOTAP_DBM_ANTNOISE);
    eval("sub IEEE80211_RADIOTAP_LOCK_QUALITY () { 7; }") unless defined(&IEEE80211_RADIOTAP_LOCK_QUALITY);
    eval("sub IEEE80211_RADIOTAP_TX_ATTENUATION () { 8; }") unless defined(&IEEE80211_RADIOTAP_TX_ATTENUATION);
    eval("sub IEEE80211_RADIOTAP_DB_TX_ATTENUATION () { 9; }") unless defined(&IEEE80211_RADIOTAP_DB_TX_ATTENUATION);
    eval("sub IEEE80211_RADIOTAP_DBM_TX_POWER () { 10; }") unless defined(&IEEE80211_RADIOTAP_DBM_TX_POWER);
    eval("sub IEEE80211_RADIOTAP_ANTENNA () { 11; }") unless defined(&IEEE80211_RADIOTAP_ANTENNA);
    eval("sub IEEE80211_RADIOTAP_DB_ANTSIGNAL () { 12; }") unless defined(&IEEE80211_RADIOTAP_DB_ANTSIGNAL);
    eval("sub IEEE80211_RADIOTAP_DB_ANTNOISE () { 13; }") unless defined(&IEEE80211_RADIOTAP_DB_ANTNOISE);
    eval("sub IEEE80211_RADIOTAP_FCS () { 14; }") unless defined(&IEEE80211_RADIOTAP_FCS);
    eval("sub IEEE80211_RADIOTAP_HWQUEUE () { 15; }") unless defined(&IEEE80211_RADIOTAP_HWQUEUE);
    eval("sub IEEE80211_RADIOTAP_RSSI () { 16; }") unless defined(&IEEE80211_RADIOTAP_RSSI);
    eval("sub IEEE80211_RADIOTAP_EXT () { 31; }") unless defined(&IEEE80211_RADIOTAP_EXT);
    unless(defined(&_KERNEL)) {
	eval 'sub IEEE80211_CHAN_TURBO () {0x10;}' unless defined(&IEEE80211_CHAN_TURBO);
	eval 'sub IEEE80211_CHAN_CCK () {0x20;}' unless defined(&IEEE80211_CHAN_CCK);
	eval 'sub IEEE80211_CHAN_OFDM () {0x40;}' unless defined(&IEEE80211_CHAN_OFDM);
	eval 'sub IEEE80211_CHAN_2GHZ () {0x80;}' unless defined(&IEEE80211_CHAN_2GHZ);
	eval 'sub IEEE80211_CHAN_5GHZ () {0x100;}' unless defined(&IEEE80211_CHAN_5GHZ);
	eval 'sub IEEE80211_CHAN_PASSIVE () {0x200;}' unless defined(&IEEE80211_CHAN_PASSIVE);
	eval 'sub IEEE80211_CHAN_DYN () {0x400;}' unless defined(&IEEE80211_CHAN_DYN);
	eval 'sub IEEE80211_CHAN_GFSK () {0x800;}' unless defined(&IEEE80211_CHAN_GFSK);
	eval 'sub IEEE80211_CHAN_XR () {0x1000;}' unless defined(&IEEE80211_CHAN_XR);
    }
    eval 'sub IEEE80211_RADIOTAP_F_CFP () {0x1;}' unless defined(&IEEE80211_RADIOTAP_F_CFP);
    eval 'sub IEEE80211_RADIOTAP_F_SHORTPRE () {0x2;}' unless defined(&IEEE80211_RADIOTAP_F_SHORTPRE);
    eval 'sub IEEE80211_RADIOTAP_F_WEP () {0x4;}' unless defined(&IEEE80211_RADIOTAP_F_WEP);
    eval 'sub IEEE80211_RADIOTAP_F_FRAG () {0x8;}' unless defined(&IEEE80211_RADIOTAP_F_FRAG);
    eval 'sub IEEE80211_RADIOTAP_F_FCS () {0x10;}' unless defined(&IEEE80211_RADIOTAP_F_FCS);
}
1;
