require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_NET80211_IEEE80211_PROTO_H_)) {
    eval 'sub _NET80211_IEEE80211_PROTO_H_ () {1;}' unless defined(&_NET80211_IEEE80211_PROTO_H_);
    eval("sub IEEE80211_S_INIT () { 0; }") unless defined(&IEEE80211_S_INIT);
    eval("sub IEEE80211_S_SCAN () { 1; }") unless defined(&IEEE80211_S_SCAN);
    eval("sub IEEE80211_S_AUTH () { 2; }") unless defined(&IEEE80211_S_AUTH);
    eval("sub IEEE80211_S_ASSOC () { 3; }") unless defined(&IEEE80211_S_ASSOC);
    eval("sub IEEE80211_S_RUN () { 4; }") unless defined(&IEEE80211_S_RUN);
    eval 'sub IEEE80211_S_MAX () {( &IEEE80211_S_RUN+1);}' unless defined(&IEEE80211_S_MAX);
    eval 'sub IEEE80211_SEND_MGMT {
        my($_ic,$_ni,$_type,$_arg) = @_;
	    eval q(((*($_ic)-> &ic_send_mgmt)($_ic, $_ni, $_type, $_arg, 0)));
    }' unless defined(&IEEE80211_SEND_MGMT);
    eval 'sub IEEE80211_SEND_ACTION {
        my($_ic,$_ni,$_categ,$_action,$_arg) = @_;
	    eval q(((*($_ic)-> &ic_send_mgmt)($_ic, $_ni,  &IEEE80211_FC0_SUBTYPE_ACTION, ($_categ) << 16| ($_action), $_arg)));
    }' unless defined(&IEEE80211_SEND_ACTION);
    eval 'sub ieee80211_new_state {
        my($_ic, $_nstate, $_arg) = @_;
	    eval q(((($_ic)-> &ic_newstate)(($_ic), ($_nstate), ($_arg))));
    }' unless defined(&ieee80211_new_state);
    if(defined(&IEEE80211_DEBUG)) {
    }
    unless(defined(&IEEE80211_NO_HT)) {
    }
}
1;
