src_gspi8686-s3c
所属分类:嵌入式Linux
开发工具:Unix_Linux
文件大小:408KB
下载次数:45
上传日期:2011-03-23 16:48:10
上 传 者:
wlqy19
说明: 基于 S3C2440 G-SPI接口的88w8686 linux 驱动;实现wifi功能。
(Based on S3C2440 G-SPI interface 88w8686 linux driver achieve wifi function.)
文件列表:
src_gspi8686-s3c\app\CVS\Entries (2, 2008-01-04)
src_gspi8686-s3c\app\CVS\Entries.Log (19, 2008-01-04)
src_gspi8686-s3c\app\CVS\Repository (56, 2008-01-04)
src_gspi8686-s3c\app\CVS\Root (56, 2008-01-04)
src_gspi8686-s3c\app\wlanconfig\CVS\Entries (145, 2008-01-04)
src_gspi8686-s3c\app\wlanconfig\CVS\Repository (67, 2008-01-04)
src_gspi8686-s3c\app\wlanconfig\CVS\Root (56, 2008-01-04)
src_gspi8686-s3c\app\wlanconfig\Makefile (1148, 2007-11-09)
src_gspi8686-s3c\app\wlanconfig\wlanconfig.c (117975, 2007-11-09)
src_gspi8686-s3c\app\wlanconfig\wlanconfig.h (1699, 2007-11-09)
src_gspi8686-s3c\config\bg_scan.conf (2103, 2007-11-09)
src_gspi8686-s3c\config\cal_data_ext_set_v5.conf (235, 2007-11-09)
src_gspi8686-s3c\config\cal_data_ext_set_v7.conf (820, 2007-11-09)
src_gspi8686-s3c\config\cal_data_ext_set_vA.conf (1409, 2007-11-09)
src_gspi8686-s3c\config\CVS\Entries (381, 2008-01-04)
src_gspi8686-s3c\config\CVS\Repository (59, 2008-01-04)
src_gspi8686-s3c\config\CVS\Root (56, 2008-01-04)
src_gspi8686-s3c\config\hostcmd.conf (5291, 2007-11-09)
src_gspi8686-s3c\config\tspecs.conf (1325, 2007-11-09)
src_gspi8686-s3c\config\wmm_para.conf (324, 2007-11-09)
src_gspi8686-s3c\CVS\Entries (240, 2008-01-04)
src_gspi8686-s3c\CVS\Entries.Log (89, 2008-01-04)
src_gspi8686-s3c\CVS\Repository (52, 2008-01-04)
src_gspi8686-s3c\CVS\Root (56, 2008-01-04)
src_gspi8686-s3c\FwImage\CVS\Entries (103, 2008-01-04)
src_gspi8686-s3c\FwImage\CVS\Repository (60, 2008-01-04)
src_gspi8686-s3c\FwImage\CVS\Root (56, 2008-01-04)
src_gspi8686-s3c\FwImage\gspi8686.bin (112004, 2007-11-09)
src_gspi8686-s3c\FwImage\helper_gspi.bin (2140, 2007-11-09)
src_gspi8686-s3c\if\CVS\Entries (2, 2008-01-04)
src_gspi8686-s3c\if\CVS\Entries.Log (16, 2008-01-04)
src_gspi8686-s3c\if\CVS\Repository (55, 2008-01-04)
src_gspi8686-s3c\if\CVS\Root (56, 2008-01-04)
src_gspi8686-s3c\if\if_gspi\CVS\Entries (227, 2008-01-04)
src_gspi8686-s3c\if\if_gspi\CVS\Repository (63, 2008-01-04)
src_gspi8686-s3c\if\if_gspi\CVS\Root (56, 2008-01-04)
src_gspi8686-s3c\if\if_gspi\gspi8686.h (1120189, 2007-11-09)
src_gspi8686-s3c\if\if_gspi\helper.h (21413, 2007-11-09)
src_gspi8686-s3c\if\if_gspi\if_gspi.c (29324, 2008-01-18)
src_gspi8686-s3c\if\if_gspi\if_gspi.h (3423, 2007-11-09)
... ...
================================================================================
U S E R M A N U A L
1) FOR DRIVER INSTALL
a) Copy helper_gspi.bin and gspi8686.bin to /lib/firmware/ directory
b) insmod gspi.o (or gspi.ko)
c) insmod gspi8686.o (or gspi8686.ko) helper_name=/lib/firmware/helper_sd.bin fw_name=/lib/firmware/gspi8686.bin
To install SD83xx Driver with user-specified helper file /lib/firmware/helper_sd.bin and
MFG firmware file /lib/firmware/sd83xxmfg.bin, using the following command:
insmod gspi.o
insmod sd83xx.o mfgmode=1 helper_name=/lib/firmware/helper_sd.bin fw_name=/lib/firmware/sd83xxmfg.bin
2) FOR IWPRIV COMMAND
NAME
This manual describes the usage of private commands used in Marvell WLAN
Linux Driver. All the commands available in Wlanconfig will not be available
in the iwpriv.
SYNOPSIS
iwpriv [sub-command] ...
iwpriv ethX version
iwpriv ethX scantype [sub-command]
iwpriv ethX getSNR
iwpriv ethX getNF
iwpriv ethX getRSSI
iwpriv ethX setrxant
iwpriv ethX getrxant
iwpriv ethX settxant
iwpriv ethX gettxant
iwpriv ethX authalgs
iwpriv ethX 8021xauthalgs
iwpriv ethX encryptionmode
iwpriv ethX setregioncode
iwpriv ethX getregioncode
iwpriv ethX setbcnavg
iwpriv ethX getbcnavg
iwpriv ethX setdataavg
iwpriv ethX setlisteninter
iwpriv ethX getlisteninter
iwpriv ethX setmultipledtim
iwpriv ethX getmultipledtim
iwpriv ethX atimwindow
iwpriv ethX deepsleep
iwpriv ethX hostsleepcfg
iwpriv ethX deauth
iwpriv ethX adhocstop
iwpriv ethX radioon
iwpriv ethX radiooff
iwpriv ethX reasso-on
iwpriv ethX reasso-off
iwpriv ethX scanmode [sub-command]
iwpriv ethX setwpaie
iwpriv ethX wlanidle-off
iwpriv ethX wlanidle-on
iwpriv ethX setaeskey
iwpriv ethX getaeskey
iwpriv ethX rmaeskey
iwpriv ethX getcis
iwpriv ethX getlog
iwpriv ethX getadhocstatus
iwpriv ethX adhocgrate
Version 4 Command:
iwpriv ethX inactvityto
iwpriv ethX sleeppd
iwpriv ethX enable11d
iwpriv ethX bgscan
iwpriv ethX wmm
iwpriv ethX tpccfg
iwpriv ethX powercfg
iwpriv ethX setafc
iwpriv ethX getafc
Version 5 Command:
iwpriv ethX ledgpio
iwpriv ethX wmm_qosinfo
iwpriv ethX scanprobes
iwpriv ethX lolisteninter
iwpriv ethX rateadapt
iwpriv ethX fwwakeupmethod
iwpriv ethX txcontrol
iwpriv ethX uapsdnullgen
iwpriv ethX psnullinterval
iwpriv ethX prescan
iwpriv ethX getrxinfo
iwpriv ethX gettxrate
iwpriv ethX bcninterval [n]
iwpriv ethX setcoalescing
iwpriv ethX adhocawakepd
DESCRIPTION
Those commands are used to send additional commands to the Marvell WLAN
card via the Linux device driver.
The ethX parameter specifies the network device that is to be used to
perform this command on. it could be eth0, eth1 etc.
version
This is used to get the current version of the driver and the firmware.
scantype
This command is used to set the scan type to be used by the driver in
the scan command. This setting will not be used while performing a scan
for a specific SSID, as it is always done with scan type being active.
where the sub-commands are: -
active -- to set the scan type to active
passive -- to set the scan type to passive
get -- to get the scan type set in the driver
getSNR
This command gets the average and non average value of Signal to Noise
Ratio of Beacon and Data.
where value is:-
0 -- Beacon non-average.
1 -- Beacon average.
2 -- Data non-average.
3 -- Data average.
If no value is given, all four values are returned in the order mentioned
above.
Note: This command is available only when STA is connected.
getRSSI
This command gets the average and non average value os Receive Signal
Strength of Beacon and Data.
where value is:-
0 -- Beacon non-average.
1 -- Beacon average.
2 -- Data non-average.
3 -- Data average.
Note: This command is available only when STA is connected.
getNF
This command gets the average and non average value of Noise Floor of
Beacon and Data.
where value is:-
0 -- Beacon non-average.
1 -- Beacon average.
2 -- Data non-average.
3 -- Data average.
Note: This command is available only when STA is connected.
setrxant
This command is used to set the mode for Rx antenna.
The options that can be sent are:-
1 -- Antenna 1.
2 -- Antenna 2.
0xFFFF -- Diversity.
Usage:
iwpriv ethX setrxant 0x01: select Antenna 1.
getrxant
This command is used to get the mode for Rx antenna.
settxant
This command is used to set the mode for Tx antenna.
The options that can be sent are:-
1 -- Antenna 1.
2 -- Antenna 2.
0xFFFF -- Diversity.
Usage:
iwpriv ethX settxant 0x01: select Antenna 1.
gettxant
This command is used to get the mode for Tx antenna.
authalgs
This command is used by the WPA supplicant to set the authentication
algorithms in the station.
8021xauthalgs
This command is used by the WPA supplicant to set the 8021.x authentication algorithm type
station.
where values can be:-
1 -- None
2 -- LEAP
4 -- TLS
8 -- TTLs
16 -- MD5
encryptionmode
This command is used by the WPA supplicant to set the encryption algorithm.
where values can be:-
0 -- NONE
1 -- WEP40
2 -- TKIP
3 -- CCMP
4 -- WEP104
setregioncode
This command is used to set the region code in the station.
where value is 'region code' for various regions like
USA FCC, Canada IC, France, Europe ETSI, Japan ...
Usage:
iwpriv ethX setregioncode 0x10: set region code to USA (0x10).
getregioncode
This command is used to get the region code information set in the
station.
setbcnavg
Set the weighting factor for calculating RSSI.
getbcnavg
Get weighting factor for calculating RSSI.
setdataavg
Set the weighting factor for calculating SNR.
setlisteninter
This command is used to set the listen interval in the
station.
where the value ranges between 1 - 255
getlisteninter
This command is used to get the listen interval value set in the
station.
setmultipledtim
This command is used to set the multiple dtim value in the
station.
where the value is 1,2,3,4,5,0xfffe
0xfffe means the firmware will use listen interval in association
command for waking up
getmultipledtim
This command is used to get the multiple dtim value set in the station.
atimwindow
This command is used to set atim value in the station when an argument is given,
return the atim value set by the user and the current atim value if adapter is in connected state.
The valid atimwindow is between 0 - 50.
Usage:
iwpriv ethX atimwindow 0 (set atimwindow to 0)
not connected:
iwpriv ethX atimwindow (get atimwindow value set by user)
connected:
iwpriv ethX atimwindow (get atimwindow set by user previously
and current atimwindow)
deauth
This command is used to send the de-authentication to the AP with which
the station is associated. This command is valid only when
station is in Infrastructure mode.
Note: This command is available only when STA is connected.
reasso-on
This command is used to enable re-association function in dirver.
reasso-off
This command is used to disable re-association function in driver
adhocstop
This command is used to stop beacon transmission from the station and
go into idle state in ad-hoc mode.
Note: This command is available only when STA is connected.
radioon
This command is used to turn on the RF antenna.
radiooff
This command is sued to turn off the RF antenna.
scanmode
This command is used to set the station to scan for either IBSS
networks or BSS networks or both BSS and IBSS networks. This
command can be used with sub commands,
where the value for
bss -- Scan All the BSS networks.
ibss -- Scan All the IBSS networks.
any -- Scan both BSS and IBSS networks.
deepsleep
This command is used to configure the station in deepsleep mode.
where the option is:
1 -- Enable deepsleep mode
0 -- Disable deepsleep mode.
hostsleepcfg
This command is used to configure the host sleep parameters.
(Condition, GPIO pin , Gap).
where Condition is:-
bit 0 = 1 -- non unicast data
bit 1 = 1 -- unicast data
bit 2 = 1 -- mac event
bit 3 = 1 -- magic packet
bit0:31=1 -- cancel host_sleep_config
where GPIO is the pin number of GPIO used to wakeup the host.
It could be 0-7 (GPIO0 to GPIO7) or 0xff (SDIO will be used instead).
where Gap is the gap in milli seconds between wakeup signal and wakeup event.
Where GPIO and Gap are one byte Hexical data.
Usage:
iwpriv eth1 hostsleepcfg "2 1 80" # unicast data
# GPIO 1
# gap: 128ms
iwpriv eth1 hostsleepcfg "2 0ff 0" # unicast data
# GPIO not used
# gap: 0ms
iwpriv eth1 hostsleepcfg "0ffffffff 0 0" # cancel host sleep config
Note: This command is available only when STA is connected.
setwpaie
This command is used by WPA supplicant to send the WPA-IE to the driver.
wlanidle-off
This command is used to get into idle state.
Note: This command is available only when STA is connected.
wlanidle-on
This command is used to get off the idle state.
Note: This command is available only when STA is connected.
setaeskey
This command is used to set the AES key, when the station is in Ad-hoc
mode.
where value can be any 16 byte value.
Usage:
iwpriv ethX setaeskey 12345678901234567890123456789012
getaeskey
This command is used to get the AES key, when the station is in Ad-hoc
mode.
rmaeskey
This command is used to remove the Ad-Hoc AES key that is previously set.
It will disable ad-hoc AES as well.
getcis
This command is used to read the Card Info Structure Table.
getlog
This command is used to get the 802.11 statistics available in the
station.
Note: This command is available only when STA is connected.
getadhocstatus
This command is used to get the ad-hoc Network Status.
The various status codes are:
AdhocStarted
AdhocJoined
AdhocIdle
InfraMode
AutoUnknownMode
Note: This command is available only when STA is connected.
adhocgrate
This command is used to enable(1) g_rate, Disable(0) g_rate
and request(2) the status which g_rate is disabled/enabled,
for Ad-hoc creator.
where value is:-
0 -- Disabled
1 -- Enabled
2 -- Get
ledgpio
This command is used to set/get LEDs.
iwpriv ethX ledgpio
will set the corresponding LED for the GPIO Line.
iwpriv ethX ledgpio
will give u which LEDs are Enabled.
Usage:
iwpriv eth1 ledgpio 1 0 2 1 3 4
will enable
LED 1 -> GPIO 0
LED 2 -> GPIO 1
LED 3 -> GPIO 4
iwpriv eth1 ledgpio
shows LED information in the format as mentioned above.
Note: LED0 is invalid
Note: Maximum Number of LEDs are 16.
inactivityto
This command is used by the host to set/get the inactivity timeout value,
which specifies when WLAN device is put to sleep.
Usage:
iwpriv ethX inactivityto []
where the parameter are:
timeout: timeout value in milliseconds.
Example:
iwpriv eth1 inactivityto
"get the timeout value"
iwpriv eth1 inactivityto X
"set timeout value to X ms"
sleeppd
This command is used to configure the sleep period of the WLAN device.
Usage:
iwpriv ethX sleeppd []
where the parameter are:
Period: sleep period in milliseconds. Range 10~60.
Example:
iwpriv eth1 sleeppd 10
"set period as 10 ms"
iwpriv eth1 sleeppd
"get the sleep period configuration"
enable11d
This command is used to control 11d
where value is:-
1 -- Enabled
0 -- Disabled
2 -- Get
wmm
This command is used to control WMM
where value is:-
0 -- Disabled
1 -- Enabled
2 -- Get
bgscan
Enables or disables the Background scan.
The configuration for bg scan must be set using wlanconfig
Usage:
wlanconfig ethX bgscanconfig bg_scan_config.conf
iwpriv ethX bgscan 0 (disable)
iwpriv ethX bgscan 1 (enable)
iwpriv ethX bgscan 2 (display enable or disable)
tpccfg
Enables or disables automatic transmit power control.
The first parameter turns this feature on (1) or off (0). When turning
on, the user must also supply four more parameters in the following
order:
-UseSNR (Use SNR (in addition to PER) for TPC algorithm),
-P0 (P0 power level for TPC),
-P1 (P1 power level for TPC),
-P2 (P2 power level for TPC).
Usage:
iwpriv ethX tpccfg: Get current configuration
iwpriv ethX tpccfg 0: disable auto TPC
iwpriv ethX tpccfg 0x01 0x00 0x05 0x0a 0x0d: enable auto TPC; do not use SNR;
P0=0x05; P1=0x0a; P2=0x0d;
iwpriv ethX tpccfg 0x01 0x01 0x05 0x0a 0x0d: enable auto TPC; use SNR;
P0=0x05; P1=0x0a; P2=0x0d.
powercfg
Enables or disables power adaptation.
The first parameter turns this feature on (1) or off (0). When turning
on, the user must also supply three more parameters in the following
order:
-P0 (P0 power level for Power Adaptation),
-P1 (P1 power level for Power Adaptation),
-P2 (P2 power level for Power Adaptation).
Usage:
iwpriv ethX powercfg: Get current configuration
iwpriv ethX powercfg 0: disable power adaptation
iwpriv ethX powercfg 1 0x0d 0x0f 0x12: enable power adaptation;
P0=0x0d; P1=0x0f; P2=0x12.
getafc
This command returns automatic frequency control parameters. It returns
three integers:
-P0: automatic is on (1), or off (0),
-P1: current timing offset in PPM (part per million), and
-P2: current frequency offset in PPM.
setafc
Set automatic frequency control options.
The first parameter turns automatic on (1) or off (0).
The user must supply two more parameters in either case, in the following
order:
When auto is on:
-P0 (automatic adjustment frequency threshold in PPM),
-P1 (automatic adjustment period in beacon period),
When auto is off:
-P0 (manual adjustment timing offset in PPM), and
-P1 (manual adjustment frequency offset in PPM).
Usage:
iwpriv ethX setafc 0 10 10: manual adjustment, both timing and frequcncy
offset are 10 PPM.
iwpriv ethX setafc 1 10 10 enable afc, automatic adjustment,
frequency threshold 10 PPM, for every 10 beacon periods.
wmm_qosinfo
This command sets WMM IE QOS info when an argument is given, and gets current WMM
IE QOS info when no argument is given.
Usage:
iwpriv ethX wmm_qosinfo 0x0f (set WMM IE QOS info to 0x0f)
iwpriv ethX wmm_qosinfo (get WMM IE QOS info)
scanprobes
This command sets number of probe requests per channel.
Usage:
iwpriv ethX scanprobes 3 (set scan probes to 3)
iwpriv ethX scanprobes (get scan probes)
lolisteninter
This command sets the value of listen interval.
Usage:
iwpriv ethX lolisteninter 234 (set the lolisteninter to 234)
iwpriv ethX lolisteninter (get the lolisteninter value)
rateadapt
This command sets the data rates bitmap.
Where
0: Disable hardware auto rate adapt
1: Enable hardware auto rate adapt
data rate bitmap
Bit Data rate
0 1 Mbps
1 2 Mbps
2 5.5 Mbps
3 11 Mbps
4 Reserved
5 6 Mbps
6 9 Mbps
7 12 Mbps
8 18 Mbps
9 24 Mbps
10 36 Mbps
11 48 Mbps
12 54 Mbps
12-15 Reserved
Usage:
iwpriv ethX rateadapt
read the currect data rate setting
iwpriv ethX rateadapt 1 0x07
enable hardware auto data rate adapt and
data rates are 1Mbps, 2Mbsp and 5.5Mbps
fwwakeupmethod
This command is used to set the firmware wakeup method.
where value is:
0 -- Leave the current method to wakeup firmware unchanged
1 -- Firmware wakeup through the interface command interrupt
-- (default setting for SDIO/GSPI)
2 -- Firmware wakeup through the GPIO pin
-- (default setting for CF)
Usage:
iwpriv ethX fwwakeupmethod
Read the currect firmware wakeup method setting
iwpriv ethX fwwakeupmethod 0
Leave the current method to wakeup firmware unchanged
iwpriv ethX fwwakeupmethod 1
Firmware wakeup through the interface command interrupt
iwpriv ethX fwwakeupmethod 2
Firmware wakeup through the GPIO pin
txcontrol
This command is used to set the Tx rate, ack policy, and retry limit on a per packet basis.
Where value is:
if bit[4] == 1:
bit[3:0] -- 0 1 2 3 4 5 6 7 8 9 10 11 12 13-16
Data Rate(Mbps) -- 1 2 5.5 11 Rsv 6 9 12 18 24 36 48 54 Rsv
bit[12:8]
if bit[12] == 1, bit[11:8] specifies the Tx retry limit.
bit[14:13] specifies per packet ack policy:
bit[14:13]
1 0 use immediate ack policy for this packet
1 1 use no ack policy for this packet
0 x use the per-packet ack policy setting
Usage:
iwpriv ethX txcontrol 0x7513
Use no-ack policy, 5 retires for Tx, 11Mbps rate
uapsdnullgen
This command is used to enable(1) UAPSD null package generation,
Disable(0) UAPSD null package generation, and request(2) the status
which null package generation is disabled/enabled,
for Ad-hoc creator.
where value is:-
0 -- Disabled
1 -- Enabled
2 -- Get
psnullinterval
This command is used to set/request NULL package interval for Power Save
under infrastructure mode.
where value is:-
-1 -- Disabled
n>0 -- Set interval as n (seconds)
prescan
This command is used to enable (1)/disable(0) auto prescan before assoicate to the ap
where value is:-
0 -- Disabled
1 -- Enabled
2 -- Get
getrxinfo
This command gets non average value of Signal to Noise Ratio of Data and rate index.
The following table shows RateIndex and Rate
RateIndex Data rate
0 1 Mbps
1 2 Mbps
2 5.5 Mbps
3 11 Mbps
4 Reserved
5 6 Mbps
6 9 Mbps
7 12 Mbps
8 18 Mbps
9 24 Mbps
10 36 Mbps
11 48 Mbps
12 54 Mbps
13-15 Reserved
gettxrate
This command gets current Tx rate index of the first packet associated with Rate Adaptation.
The following table shows RateIndex and Rate
RateIndex Data rate
0 1 Mbps
1 2 Mbps
2 5.5 Mbps
3 11 Mbps
4 Reserved
5 6 Mbps
6 9 Mbps
7 12 Mbps
8 18 Mbps
9 24 Mbps
10 36 Mbps
11 48 Mbps
12 54 Mbps
13-15 Reserved
bcninterval
This command is used to set beacon interval in adhoc mode when an argument is given,
return the value set by the user and the current adhoc beacon interval if adapter is in connected state.
The valid beacon interval is between 20 - 1000, default beacon interval is 100.
Usage:
iwpriv ethX bcninterval 100 (set adhoc beacon interval to 100)
not connected:
iwpriv ethX bcninterval (get adhoc beacon interval set by user)
connected:
iwpriv ethX bcninterval (get adhoc beacon interval set by user previously
... ...
近期下载者:
相关文件:
收藏者: