require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_DEV_ATH_ATHIOCTL_H)) {
    eval 'sub _DEV_ATH_ATHIOCTL_H () {1;}' unless defined(&_DEV_ATH_ATHIOCTL_H);
    require 'sys/types.ph';
    require 'sys/ioccom.ph';
    require 'net/if.ph';
    require 'net80211/ieee80211_radiotap.ph';
    eval 'sub SIOCGATHSTATS () { &_IOWR(ord(\'i\'), 137, \'struct ifreq\');}' unless defined(&SIOCGATHSTATS);
    eval 'sub ATH_DIAG_DYN () {0x8000;}' unless defined(&ATH_DIAG_DYN);
    eval 'sub ATH_DIAG_IN () {0x4000;}' unless defined(&ATH_DIAG_IN);
    eval 'sub ATH_DIAG_OUT () {0x;}' unless defined(&ATH_DIAG_OUT);
    eval 'sub ATH_DIAG_ID () {0xfff;}' unless defined(&ATH_DIAG_ID);
    eval 'sub SIOCGATHDIAG () { &_IOWR(ord(\'i\'), 138, \'struct ath_diag\');}' unless defined(&SIOCGATHDIAG);
    eval 'sub ATH_RX_RADIOTAP_PRESENT () {( (1<<  &IEEE80211_RADIOTAP_TSFT) | (1<<  &IEEE80211_RADIOTAP_FLAGS) | (1<<  &IEEE80211_RADIOTAP_RATE) | (1<<  &IEEE80211_RADIOTAP_CHANNEL) | (1<<  &IEEE80211_RADIOTAP_DBM_ANTSIGNAL) | (1<<  &IEEE80211_RADIOTAP_DBM_ANTNOISE) | (1<<  &IEEE80211_RADIOTAP_ANTENNA) | 0);}' unless defined(&ATH_RX_RADIOTAP_PRESENT);
    eval 'sub ATH_TX_RADIOTAP_PRESENT () {( (1<<  &IEEE80211_RADIOTAP_TSFT) | (1<<  &IEEE80211_RADIOTAP_FLAGS) | (1<<  &IEEE80211_RADIOTAP_RATE) | (1<<  &IEEE80211_RADIOTAP_CHANNEL) | (1<<  &IEEE80211_RADIOTAP_DBM_TX_POWER) | (1<<  &IEEE80211_RADIOTAP_ANTENNA) | 0);}' unless defined(&ATH_TX_RADIOTAP_PRESENT);
}
1;
