require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_NET80211_IEEE80211_NODE_H_)) {
    eval 'sub _NET80211_IEEE80211_NODE_H_ () {1;}' unless defined(&_NET80211_IEEE80211_NODE_H_);
    eval 'sub IEEE80211_PSCAN_WAIT () {5;}' unless defined(&IEEE80211_PSCAN_WAIT);
    eval 'sub IEEE80211_TRANS_WAIT () {5;}' unless defined(&IEEE80211_TRANS_WAIT);
    eval 'sub IEEE80211_INACT_WAIT () {5;}' unless defined(&IEEE80211_INACT_WAIT);
    eval 'sub IEEE80211_INACT_MAX () {(300/ &IEEE80211_INACT_WAIT);}' unless defined(&IEEE80211_INACT_MAX);
    eval 'sub IEEE80211_CACHE_SIZE () {100;}' unless defined(&IEEE80211_CACHE_SIZE);
    eval("sub IEEE80211_STA_CACHE () { 0; }") unless defined(&IEEE80211_STA_CACHE);
    eval("sub IEEE80211_STA_BSS () { 1; }") unless defined(&IEEE80211_STA_BSS);
    eval("sub IEEE80211_STA_AUTH () { 2; }") unless defined(&IEEE80211_STA_AUTH);
    eval("sub IEEE80211_STA_ASSOC () { 3; }") unless defined(&IEEE80211_STA_ASSOC);
    eval("sub IEEE80211_STA_COLLECT () { 4; }") unless defined(&IEEE80211_STA_COLLECT);
    eval 'sub ieee80211_node_newstate {
        my($__ni, $__state) = @_;
	    eval q( &do { ($__ni)-> &ni_state = ($__state); }  &while (0));
    }' unless defined(&ieee80211_node_newstate);
    if(defined(&notyet)) {
    }
    eval 'sub IEEE80211_NODE_ERP () {0x1;}' unless defined(&IEEE80211_NODE_ERP);
    eval 'sub ieee80211_node_incref {
        my($ni) = @_;
	    eval q( &do { \'int\'  &_s =  &splnet(); ($ni)-> &ni_refcnt++;  &splx( &_s); }  &while (0));
    }' unless defined(&ieee80211_node_incref);
    eval 'sub ieee80211_node_decref {
        my($ni) = @_;
	    eval q({ \'int\'  &refcnt,  &s;  &s =  &splnet();  &refcnt = -- ($ni->{ni_refcnt});  &splx( &s);  &refcnt; });
    }' unless defined(&ieee80211_node_decref);
    eval 'sub ieee80211_ref_node {
        my($ni) = @_;
	    eval q({  &ieee80211_node_incref($ni); $ni; });
    }' unless defined(&ieee80211_ref_node);
    eval 'sub ieee80211_unref_node {
        my($ni) = @_;
	    eval q({  &ieee80211_node_decref(*$ni); *$ni =  &NULL; });
    }' unless defined(&ieee80211_unref_node);
    eval 'sub IEEE80211_NODE_LOCK_INIT {
        my($_ic, $_name) = @_;
	    eval q();
    }' unless defined(&IEEE80211_NODE_LOCK_INIT);
    eval 'sub IEEE80211_NODE_LOCK_DESTROY {
        my($_ic) = @_;
	    eval q();
    }' unless defined(&IEEE80211_NODE_LOCK_DESTROY);
    eval 'sub IEEE80211_NODE_LOCK {
        my($_ic) = @_;
	    eval q(($_ic)-> &ic_nodelock =  &splnet());
    }' unless defined(&IEEE80211_NODE_LOCK);
    eval 'sub IEEE80211_NODE_UNLOCK {
        my($_ic) = @_;
	    eval q( &splx(($_ic)-> &ic_nodelock));
    }' unless defined(&IEEE80211_NODE_UNLOCK);
    eval 'sub IEEE80211_NODE_LOCK_ASSERT {
        my($_ic) = @_;
	    eval q();
    }' unless defined(&IEEE80211_NODE_LOCK_ASSERT);
    eval 'sub IEEE80211_NODE_LOCK_BH () { &IEEE80211_NODE_LOCK;}' unless defined(&IEEE80211_NODE_LOCK_BH);
    eval 'sub IEEE80211_NODE_UNLOCK_BH () { &IEEE80211_NODE_UNLOCK;}' unless defined(&IEEE80211_NODE_UNLOCK_BH);
    if(defined(&MALLOC_DECLARE)) {
    }
}
1;
