require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_NET80211_IEEE80211_CRYPTO_H_)) {
    eval 'sub _NET80211_IEEE80211_CRYPTO_H_ () {1;}' unless defined(&_NET80211_IEEE80211_CRYPTO_H_);
    eval 'sub IEEE80211_KEYBUF_SIZE () {16;}' unless defined(&IEEE80211_KEYBUF_SIZE);
    eval 'sub IEEE80211_MICBUF_SIZE () {(8+8);}' unless defined(&IEEE80211_MICBUF_SIZE);
    eval 'sub IEEE80211_KEY_XMIT () {0x1;}' unless defined(&IEEE80211_KEY_XMIT);
    eval 'sub IEEE80211_KEY_RECV () {0x2;}' unless defined(&IEEE80211_KEY_RECV);
    eval 'sub IEEE80211_KEY_GROUP () {0x4;}' unless defined(&IEEE80211_KEY_GROUP);
    eval 'sub IEEE80211_KEY_SWCRYPT () {0x10;}' unless defined(&IEEE80211_KEY_SWCRYPT);
    eval 'sub IEEE80211_KEY_SWMIC () {0x20;}' unless defined(&IEEE80211_KEY_SWMIC);
    eval 'sub wk_txmic () { &wk_key+ &IEEE80211_KEYBUF_SIZE+0;}' unless defined(&wk_txmic);
    eval 'sub wk_rxmic () { &wk_key+ &IEEE80211_KEYBUF_SIZE+8;}' unless defined(&wk_rxmic);
    eval 'sub IEEE80211_KEY_COMMON () {( &IEEE80211_KEY_XMIT |  &IEEE80211_KEY_RECV |  &IEEE80211_KEY_GROUP);}' unless defined(&IEEE80211_KEY_COMMON);
    eval 'sub IEEE80211_CIPHER_WEP () {0;}' unless defined(&IEEE80211_CIPHER_WEP);
    eval 'sub IEEE80211_CIPHER_TKIP () {1;}' unless defined(&IEEE80211_CIPHER_TKIP);
    eval 'sub IEEE80211_CIPHER_AES_OCB () {2;}' unless defined(&IEEE80211_CIPHER_AES_OCB);
    eval 'sub IEEE80211_CIPHER_AES_CCM () {3;}' unless defined(&IEEE80211_CIPHER_AES_CCM);
    eval 'sub IEEE80211_CIPHER_CKIP () {5;}' unless defined(&IEEE80211_CIPHER_CKIP);
    eval 'sub IEEE80211_CIPHER_NONE () {6;}' unless defined(&IEEE80211_CIPHER_NONE);
    eval 'sub IEEE80211_CIPHER_MAX () {( &IEEE80211_CIPHER_NONE+1);}' unless defined(&IEEE80211_CIPHER_MAX);
    eval 'sub IEEE80211_KEYIX_NONE () {(( &ieee80211_keyix) -1);}' unless defined(&IEEE80211_KEYIX_NONE);
    eval 'sub IEEE80211_KEY_UNDEFINED {
        my($k) = @_;
	    eval q((($k). &wk_cipher ==  &ieee80211_cipher_none));
    }' unless defined(&IEEE80211_KEY_UNDEFINED);
    if(defined(&__KERNEL__) || defined(&_KERNEL)) {
    }
}
1;
