require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&UATH_TX_DATA_LIST_COUNT)) {
    sub UATH_TX_DATA_LIST_COUNT () {	8;}
}
unless(defined(&UATH_TX_CMD_LIST_COUNT)) {
    sub UATH_TX_CMD_LIST_COUNT () {	8;}
}
unless(defined(&UATH_RX_DATA_LIST_COUNT)) {
    sub UATH_RX_DATA_LIST_COUNT () {	1;}
}
unless(defined(&UATH_RX_CMD_LIST_COUNT)) {
    sub UATH_RX_CMD_LIST_COUNT () {	1;}
}
unless(defined(&UATH_RX_DATA_POOL_COUNT)) {
    sub UATH_RX_DATA_POOL_COUNT () {	( &UATH_RX_DATA_LIST_COUNT + 24);}
}
unless(defined(&UATH_DATA_TIMEOUT)) {
    sub UATH_DATA_TIMEOUT () {	10000;}
}
unless(defined(&UATH_CMD_TIMEOUT)) {
    sub UATH_CMD_TIMEOUT () {	1000;}
}
unless(defined(&UATH_RX_RADIOTAP_PRESENT)) {
    sub UATH_RX_RADIOTAP_PRESENT () {	((1<<  &IEEE80211_RADIOTAP_FLAGS) | (1<<  &IEEE80211_RADIOTAP_CHANNEL) | (1<<  &IEEE80211_RADIOTAP_DBM_ANTSIGNAL));}
}
unless(defined(&UATH_TX_RADIOTAP_PRESENT)) {
    sub UATH_TX_RADIOTAP_PRESENT () {	((1<<  &IEEE80211_RADIOTAP_FLAGS) | (1<<  &IEEE80211_RADIOTAP_CHANNEL));}
}
unless(defined(&UATH_TXOP_TO_US)) {
    sub UATH_TXOP_TO_US {
	my($txop) = @_;
	eval q((($txop) << 5));
    }
}
unless(defined(&UATH_COND_INIT)) {
    sub UATH_COND_INIT {
	my($sc) = @_;
	eval q(($sc + 1));
    }
}
unless(defined(&UATH_COND_NOREF)) {
    sub UATH_COND_NOREF {
	my($sc) = @_;
	eval q(($sc + 2));
    }
}
unless(defined(&UATH_CMD_FLAG_ASYNC)) {
    sub UATH_CMD_FLAG_ASYNC () {	(1<< 0);}
}
unless(defined(&UATH_CMD_FLAG_READ)) {
    sub UATH_CMD_FLAG_READ () {	(1<< 1);}
}
unless(defined(&UATH_CMD_FLAG_MAGIC)) {
    sub UATH_CMD_FLAG_MAGIC () {	(1<< 2);}
}
if((defined(&NBPFILTER) ? &NBPFILTER : 0) > 0) {
    eval 'sub sc_rxtap () { ($sc_rxtapu->{th});}' unless defined(&sc_rxtap);
    eval 'sub sc_txtap () { ($sc_txtapu->{th});}' unless defined(&sc_txtap);
}
1;
