diff --git a/README b/README index fb4615a..2fe4e46 100644 --- a/README +++ b/README @@ -11,3 +11,45 @@ Some of the subdirectories have empty README files. This means we haven't gotten to the contents of these directories. The empty README is just a trick to prevent CVS from pruning the directory. +Build Instructions: + +1) untar the package using + + tar zxvf linux-wlan-ng.tar.gz + +or you can use winzip with the file linux-wlan-ng.tar. + +2) Make sure you have configured kernel and pcmcia sources on your system. + +3) Modify the config.mk file, here's a description of the settings: + +LINUX_SRC Path to your kernel source tree +PCMCIA_SRC Path to your pcmcia source tree +MODULES_DIR Path to your modules directory, use by 'make install' +INST_EXEDIR Path to your static bin directory +DESTDIR= Alternate desination prefix for install + +Note: I haven't tested the install, I'm not sure that all of the components +will make it to their appropriate destinations. + +4) Execute the 'make all' command + +5) Since we don't have any actual devices yet, you can try loading the modules + by hand. Here's the sequence: + + insmod src/p80211/p80211.o + insmod src/skeleton/skelwland_cs.o + + now do the following command: + + ifconfig wlan0 + + You should see that the wlan0 interface exisits. You can try configuring + wlan0. BEWARE, it might leave your system unstable! The skeleton driver + is just a demonstation and test fixture, it skips over alot of stuff a + real driver is supposed to do. You can confirm the skeleton methods being + called by checking your kernel.* output via syslog (you might have to edit + syslog.conf, most distributions send kernel.* to /dev/null by default). Using + this same method you should be able to run wlanctl to send commands down + to the driver. It won't act on them, but it will write an entry to the log + indicating receipt. diff --git a/src/skeleton/skeleton.c b/src/skeleton/skeleton.c index 17a21c2..c963dba 100644 --- a/src/skeleton/skeleton.c +++ b/src/skeleton/skeleton.c @@ -133,30 +133,35 @@ static void cs_error(client_handle_t handle, int func, int ret) int wlanskel_open(wlandevice_t *wlandev) { + WLAN_LOG_DEBUG("skeleton open method called\n"); return 0; } int wlanskel_close(wlandevice_t *wlandev) { + WLAN_LOG_DEBUG("skeleton close method called\n"); return 0; } void wlanskel_reset(wlandevice_t *wlandev ) { + WLAN_LOG_DEBUG("skeleton reset method called\n"); return; } int wlanskel_txframe(wlandevice_t *wlandev, wlan_pb_t *pb ) { + WLAN_LOG_DEBUG("skeleton txframe method called.\n"); return 0; } int wlanskel_mlmerequest(wlandevice_t *wlandev, p80211msg_t *msg) { + WLAN_LOG_DEBUG1("Received msg, cmd=0x%08x\n", msg->msgcode); return 0; }