| 1 | /* |
|---|
| 2 | This file is part of lorcon |
|---|
| 3 | |
|---|
| 4 | lorcon is free software; you can redistribute it and/or modify |
|---|
| 5 | it under the terms of the GNU General Public License as published by |
|---|
| 6 | the Free Software Foundation; either version 2 of the License, or |
|---|
| 7 | (at your option) any later version. |
|---|
| 8 | |
|---|
| 9 | lorcon is distributed in the hope that it will be useful, |
|---|
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 | GNU General Public License for more details. |
|---|
| 13 | |
|---|
| 14 | You should have received a copy of the GNU General Public License |
|---|
| 15 | along with lorcon; if not, write to the Free Software |
|---|
| 16 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 17 | |
|---|
| 18 | Copyright (c) 2005 dragorn and Joshua Wright |
|---|
| 19 | */ |
|---|
| 20 | |
|---|
| 21 | #ifdef HAVE_CONFIG_H |
|---|
| 22 | #include "config.h" |
|---|
| 23 | #endif |
|---|
| 24 | |
|---|
| 25 | #ifdef SYS_LINUX |
|---|
| 26 | |
|---|
| 27 | #include "rtlinject.h" |
|---|
| 28 | #include "wtinject.h" |
|---|
| 29 | |
|---|
| 30 | int tx80211_rtl8180_init(struct tx80211 *in_tx) |
|---|
| 31 | { |
|---|
| 32 | |
|---|
| 33 | in_tx->capabilities = tx80211_rtl8180_capabilities(); |
|---|
| 34 | in_tx->open_callthrough = &wtinj_open; |
|---|
| 35 | in_tx->close_callthrough = &wtinj_close; |
|---|
| 36 | in_tx->setmode_callthrough = &wtinj_setmode; |
|---|
| 37 | in_tx->getmode_callthrough = &wtinj_getmode; |
|---|
| 38 | in_tx->getchan_callthrough = &wtinj_getchannel; |
|---|
| 39 | in_tx->setchan_callthrough = &wtinj_setchannel; |
|---|
| 40 | in_tx->txpacket_callthrough = &wtinj_send; |
|---|
| 41 | in_tx->setfuncmode_callthrough = &wtinj_setfuncmode; |
|---|
| 42 | |
|---|
| 43 | return 0; |
|---|
| 44 | } |
|---|
| 45 | |
|---|
| 46 | int tx80211_rtl8180_capabilities() |
|---|
| 47 | { |
|---|
| 48 | /* Need to test capabilities */ |
|---|
| 49 | /* return (TX80211_CAP_SNIFF | TX80211_CAP_TRANSMIT); */ |
|---|
| 50 | return (0); |
|---|
| 51 | } |
|---|
| 52 | |
|---|
| 53 | #endif /* linux */ |
|---|