Damn. I wonder if running live mepis-2.6.32-1 kernel is killing this also. I have build-essential installed. And below is the command from the read me file to install rtl8187se tar fie (which I extracted and opened terminal as root inside of extracted foldeer) . Doing this from demo directory where source and extracted file is located if that makes any difference. The read me says
RTL8187SE Linux Driver v1000.1220.2007 for linux kernel 2.6
- Support Client mode for either infrastructure or adhoc mode
- Support WEP and WPA/WPA2 PSK connection
- Support WMM
===============================================================================================
< Component >
The driver is composed of several parts:
(1)Script ot build the modules
makedrv
(2)Script to load/unload modules
wlan0up
wlan0down
(3)Script and configuration for DHCP
wlan0dhcp
ifcfg-wlan0
(4)Supplicant source code
wpa_supplicant-0.5.3.tar.gz
(5)Example of supplicant configuration file
wpa1.conf
< Installation >
Running the scripts can finish all operations of building up modules from source code and start the nic:
(1)Build up the driver from the source code
./makedrv
(2)Load the driver module to kernel and start up nic
./wlan0up
(if"insmod: error inserting 'r8180.ko': -File exists." met,
./wlan0down
./wlan0up
should be OK.
)
(3)Refer to < Set wireless lan MIBs > to set Wireless LAN specific parameters.
< Set wireless lan MIBs >
This driver uses Wireless Extension as an interface allowing you to set
Wireless LAN specific parameters.
Current driver supports"iwlist" to show the device status of nic
iwlist wlan0 [parameters]
where
parameter explaination [parameters]
----------------------- -------------
Show available chan and freq freq / channel
Show and Scan BSS and IBSS scan[ning]
Show supported bit-rate rate / bit[rate]
Show Power Management mode power
For example:
iwlist wlan0 channel
iwlist wlan0 scan
iwlist wlan0 rate
iwlist wlan0 power
Driver also supports"iwconfig", manipulate driver private ioctls, to set MIBs.
iwconfig wlan0 [parameters] [val]
where
parameter explaination [parameters] [val] constraints
----------------------- ------------- ------------------
Connect to AP by address ap [essid]
Set the essid, join (I)BSS essid [mac_addr]
Set operation mode mode {Managed|Ad-hoc}
Set keys and security mode key / enc[ryption] {N|open|restricted|off}
For example:
iwconfig wlan0 ap XX:XX:XX:XX:XX:XX
iwconfig wlan0 essid"ap_name"
iwconfig wlan0 mode Ad-hoc
iwconfig wlan0 mode essid"name" mode Ad-hoc
iwconfig wlan0 key 0123456789 [2] open
iwconfig wlan0 key off
iwconfig wlan0 key restricted [3] 0123456789
< Getting IP address >
After start up the nic, the network needs to obtain an IP address before transmit/receive data.
This can be done by setting the static IP via"ifconfig wlan0 IP_ADDRESS" command, or using DHCP.
If using DHCP, setting steps is as below:
(1)connect to an AP via"iwconfig" settings
iwconfig wlan0 essid [name] or
iwconfig wlan0 ap XX:XX:XX:XX:XX:XX
(2)run the script which run the dhclient
./wlan0dhcp
or
dhcpcd wlan0
(Some network admins require that you use the
hostname and domainname provided by the DHCP server.
In that case, use
dhcpcd -HD wlan0)
< WPAPSK >
WPA_SUPPLICANT help the network to communicate under the protection of WPAPSK mechanism
(1)Unpack source code of WPA supplicant:
tar -zxvf wpa_supplicant-0.4.9.tar.gz
cd wpa_supplicant-0.4.9
(2)Create .config file:
cp defconfig .config
(3)Edit .config file, uncomment the following line:
#CONFIG_DRIVER_IPW=y.
(4)Build WPA supplicant:
make
If make error for lack of <include/md5.h>, install the openssl lib:
1. Install the openssl lib from corresponding installation disc:
Fedora Core 2/3/4/5(openssl-0.9.71x-xx), Mandrake10.2/Mandriva10.2(openssl-0.9.7x-xmdk),
Debian 3.1(libssl-dev), Suse 9.3/10.0/10.1(openssl_devl), Gentoo(dev-libs/openssl), etc.
2. Download the openssl open source package from
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.openssl.org"
linktext was:"http://www.openssl.org"
====================================
, build and install it.
(5)Edit wpa_supplicant.conf to set up SSID and its passphrase.
For example, the following setting in"wpa1.conf" means SSID to join is"BufAG54_Ch6"
and its passphrase is"87654321".
network={
ssid="BufAG54_Ch6"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk="87654321"
priority=2
}
Note: 1. proto=WPA for WPA, proto=RSN for WPA2.
2. If you want to connect an AP which works under WPA2 mixed mode, you'd better
use Realtek customed wpa_supplicant package.
(6)Execute WPA supplicant (Assume 8185 and related modules had been loaded):
./wpa_supplicant -D ipw -c wpa1.conf -i wlan0 &
Code: Select all
demo@antiX1:/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008$ su
Password:
root@antiX1:/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008# ./makedrv
rm -f *.mod.c *.mod *.o .*.cmd *.ko *~
rm -rf /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/tmp
make -C /lib/modules/2.6.32-1-mepis-smp/build M=/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211 CC=gcc modules
make[1]: Entering directory `/aufs/usr/src/linux-headers-2.6.32-1-mepis-smp'
/bin/bash: /aufs/usr/src/linux-headers-2.6.32-1-common/scripts/gcc-x86_32-has-stack-protector.sh: No such file or directory
/aufs/usr/src/linux-headers-2.6.32-1-common/arch/x86/Makefile:81: stack protector enabled but no compiler support
CC [M] /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/dot11d.o
In file included from /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/dot11d.h:4,
from /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/dot11d.c:11:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h: In function ‘ieee80211_priv’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h:1489: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
CC [M] /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_softmac.o
In file included from /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_softmac.c:17:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h: In function ‘ieee80211_priv’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h:1489: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_associate_complete’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_softmac.c:1969: warning: array subscript is above array bounds
CC [M] /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_rx.o
In file included from /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_rx.c:46:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h: In function ‘ieee80211_priv’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h:1489: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
CC [M] /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_tx.o
In file included from /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_tx.c:56:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h: In function ‘ieee80211_priv’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h:1489: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
CC [M] /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_wx.o
In file included from /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_wx.c:37:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h: In function ‘ieee80211_priv’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h:1489: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
CC [M] /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_module.o
In file included from /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_module.c:55:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h: In function ‘ieee80211_priv’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h:1489: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_module.c: In function ‘alloc_ieee80211_rtl’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_module.c:116: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
make[4]: *** [/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_module.o] Error 1
make[3]: *** [_module_/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/aufs/usr/src/linux-headers-2.6.32-1-mepis-smp'
make: *** [modules] Error 2
rm -f *.mod.c *.mod *.o .*.cmd *.ko *~
rm -rf /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/tmp
make -C /lib/modules/2.6.32-1-mepis-smp/build M=/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185 CC=gcc modules
make[1]: Entering directory `/aufs/usr/src/linux-headers-2.6.32-1-mepis-smp'
/bin/bash: /aufs/usr/src/linux-headers-2.6.32-1-common/scripts/gcc-x86_32-has-stack-protector.sh: No such file or directory
/aufs/usr/src/linux-headers-2.6.32-1-common/arch/x86/Makefile:81: stack protector enabled but no compiler support
CC [M] /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.o
In file included from /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180.h:44,
from /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c:67:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/ieee80211.h: In function ‘ieee80211_priv’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/ieee80211.h:1489: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c: In function ‘rtl8180_shutdown’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c:199: error: ‘struct net_device’ has no member named ‘stop’
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c: In function ‘rtl8180_init’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c:4582: error: ‘struct net_device’ has no member named ‘get_stats’
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c: In function ‘rtl8180_pci_probe’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c:5967: error: ‘struct net_device’ has no member named ‘open’
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c:5968: error: ‘struct net_device’ has no member named ‘stop’
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c:5970: error: ‘struct net_device’ has no member named ‘tx_timeout’
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c:5972: error: ‘struct net_device’ has no member named ‘do_ioctl’
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c:5973: error: ‘struct net_device’ has no member named ‘set_multicast_list’
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c:5974: error: ‘struct net_device’ has no member named ‘set_mac_address’
make[4]: *** [/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.o] Error 1
make[3]: *** [_module_/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/aufs/usr/src/linux-headers-2.6.32-1-mepis-smp'
make: *** [modules] Error 2
root@antiX1:/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008# ./wlan0up
insmod: can't read 'ieee80211_crypt-rtl.ko': No such file or directory
insmod: can't read 'ieee80211_crypt_wep-rtl.ko': No such file or directory
insmod: can't read 'ieee80211_crypt_tkip-rtl.ko': No such file or directory
insmod: can't read 'ieee80211_crypt_ccmp-rtl.ko': No such file or directory
insmod: can't read 'ieee80211-rtl.ko': No such file or directory
insmod: can't read 'r8180.ko': No such file or directory
wlan0: ERROR while getting interface flags: No such device
root@antiX1:/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008#
Bangs head against wall
__{{emoticon}}__