You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Staging: rtl8192e: fix lots of sparse warnings
This removes a number of static and extern warnings that sparse complains about. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "r8180_93cx6.h"
|
||||
|
||||
void eprom_cs(struct net_device *dev, short bit)
|
||||
static void eprom_cs(struct net_device *dev, short bit)
|
||||
{
|
||||
if(bit)
|
||||
write_nic_byte(dev, EPROM_CMD,
|
||||
@@ -35,7 +35,7 @@ void eprom_cs(struct net_device *dev, short bit)
|
||||
}
|
||||
|
||||
|
||||
void eprom_ck_cycle(struct net_device *dev)
|
||||
static void eprom_ck_cycle(struct net_device *dev)
|
||||
{
|
||||
write_nic_byte(dev, EPROM_CMD,
|
||||
(1<<EPROM_CK_SHIFT) | read_nic_byte(dev,EPROM_CMD));
|
||||
@@ -48,7 +48,7 @@ void eprom_ck_cycle(struct net_device *dev)
|
||||
}
|
||||
|
||||
|
||||
void eprom_w(struct net_device *dev,short bit)
|
||||
static void eprom_w(struct net_device *dev,short bit)
|
||||
{
|
||||
if(bit)
|
||||
write_nic_byte(dev, EPROM_CMD, (1<<EPROM_W_SHIFT) | \
|
||||
@@ -62,7 +62,7 @@ void eprom_w(struct net_device *dev,short bit)
|
||||
}
|
||||
|
||||
|
||||
short eprom_r(struct net_device *dev)
|
||||
static short eprom_r(struct net_device *dev)
|
||||
{
|
||||
short bit;
|
||||
|
||||
@@ -74,7 +74,7 @@ short eprom_r(struct net_device *dev)
|
||||
}
|
||||
|
||||
|
||||
void eprom_send_bits_string(struct net_device *dev, short b[], int len)
|
||||
static void eprom_send_bits_string(struct net_device *dev, short b[], int len)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
@@ -418,7 +418,7 @@ void PHY_SetRF8256OFDMTxPower(struct net_device* dev, u8 powerlevel)
|
||||
}
|
||||
|
||||
#define MAX_DOZE_WAITING_TIMES_9x 64
|
||||
bool
|
||||
static bool
|
||||
SetRFPowerState8190(
|
||||
struct net_device* dev,
|
||||
RT_RF_POWER_STATE eRFPowerState
|
||||
@@ -717,7 +717,7 @@ SetRFPowerState8190(
|
||||
//
|
||||
// 050823, by rcnjko.
|
||||
//
|
||||
bool
|
||||
static bool
|
||||
SetRFPowerState(
|
||||
struct net_device* dev,
|
||||
RT_RF_POWER_STATE eRFPowerState
|
||||
@@ -745,7 +745,7 @@ SetRFPowerState(
|
||||
return bResult;
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
MgntDisconnectIBSS(
|
||||
struct net_device* dev
|
||||
)
|
||||
@@ -823,7 +823,7 @@ MgntDisconnectIBSS(
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
MlmeDisassociateRequest(
|
||||
struct net_device* dev,
|
||||
u8* asSta,
|
||||
@@ -837,7 +837,7 @@ MlmeDisassociateRequest(
|
||||
|
||||
SendDisassociation( priv->ieee80211, asSta, asRsn );
|
||||
|
||||
if(memcpy(priv->ieee80211->current_network.bssid,asSta,6) == 0)
|
||||
if(memcpy(priv->ieee80211->current_network.bssid,asSta,6) == NULL)
|
||||
{
|
||||
//ShuChen TODO: change media status.
|
||||
//ShuChen TODO: What to do when disassociate.
|
||||
@@ -891,7 +891,7 @@ MlmeDisassociateRequest(
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
static void
|
||||
MgntDisconnectAP(
|
||||
struct net_device* dev,
|
||||
u8 asRsn
|
||||
@@ -945,7 +945,7 @@ MgntDisconnectAP(
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
static bool
|
||||
MgntDisconnect(
|
||||
struct net_device* dev,
|
||||
u8 asRsn
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -202,8 +202,7 @@ static void dm_ctstoself(struct net_device *dev);
|
||||
// This function is only invoked at driver intialization once.
|
||||
//
|
||||
//
|
||||
extern void
|
||||
init_hal_dm(struct net_device *dev)
|
||||
void init_hal_dm(struct net_device *dev)
|
||||
{
|
||||
struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
|
||||
@@ -230,7 +229,7 @@ init_hal_dm(struct net_device *dev)
|
||||
|
||||
} // InitHalDm
|
||||
|
||||
extern void deinit_hal_dm(struct net_device *dev)
|
||||
void deinit_hal_dm(struct net_device *dev)
|
||||
{
|
||||
|
||||
dm_deInit_fsync(dev);
|
||||
@@ -296,7 +295,7 @@ void dm_CheckRxAggregation(struct net_device *dev) {
|
||||
|
||||
|
||||
|
||||
extern void hal_dm_watchdog(struct net_device *dev)
|
||||
void hal_dm_watchdog(struct net_device *dev)
|
||||
{
|
||||
//struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
|
||||
@@ -334,7 +333,7 @@ extern void hal_dm_watchdog(struct net_device *dev)
|
||||
* 01/16/2008 MHC RF_Type is assigned in ReadAdapterInfo(). We must call
|
||||
* the function after making sure RF_Type.
|
||||
*/
|
||||
extern void init_rate_adaptive(struct net_device * dev)
|
||||
void init_rate_adaptive(struct net_device * dev)
|
||||
{
|
||||
|
||||
struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
@@ -1053,7 +1052,7 @@ static void dm_TXPowerTrackingCallback_ThermalMeter(struct net_device * dev)
|
||||
}
|
||||
#endif
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20))
|
||||
extern void dm_txpower_trackingcallback(struct work_struct *work)
|
||||
void dm_txpower_trackingcallback(struct work_struct *work)
|
||||
{
|
||||
struct delayed_work *dwork = container_of(work,struct delayed_work,work);
|
||||
struct r8192_priv *priv = container_of(dwork,struct r8192_priv,txpower_tracking_wq);
|
||||
@@ -1837,10 +1836,7 @@ static void dm_CCKTxPowerAdjust_ThermalMeter(struct net_device *dev, bool bInCH
|
||||
#endif
|
||||
|
||||
|
||||
extern void dm_cck_txpower_adjust(
|
||||
struct net_device *dev,
|
||||
bool binch14
|
||||
)
|
||||
void dm_cck_txpower_adjust(struct net_device *dev, bool binch14)
|
||||
{ // dm_CCKTxPowerAdjust
|
||||
#ifndef RTL8190P
|
||||
struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
@@ -1879,7 +1875,7 @@ static void dm_txpower_reset_recovery(
|
||||
|
||||
} // dm_TXPowerResetRecovery
|
||||
|
||||
extern void dm_restore_dynamic_mechanism_state(struct net_device *dev)
|
||||
void dm_restore_dynamic_mechanism_state(struct net_device *dev)
|
||||
{
|
||||
struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
u32 reg_ratr = priv->rate_adaptive.last_ratr;
|
||||
@@ -1963,7 +1959,7 @@ static void dm_bb_initialgain_restore(struct net_device *dev)
|
||||
} // dm_BBInitialGainRestore
|
||||
|
||||
|
||||
extern void dm_backup_dynamic_mechanism_state(struct net_device *dev)
|
||||
void dm_backup_dynamic_mechanism_state(struct net_device *dev)
|
||||
{
|
||||
struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
|
||||
@@ -2018,9 +2014,7 @@ static void dm_bb_initialgain_backup(struct net_device *dev)
|
||||
* 05/29/2008 amy Create Version 0 porting from windows code.
|
||||
*
|
||||
*---------------------------------------------------------------------------*/
|
||||
extern void dm_change_dynamic_initgain_thresh(struct net_device *dev,
|
||||
u32 dm_type,
|
||||
u32 dm_value)
|
||||
void dm_change_dynamic_initgain_thresh(struct net_device *dev, u32 dm_type, u32 dm_value)
|
||||
{
|
||||
if (dm_type == DIG_TYPE_THRESH_HIGH)
|
||||
{
|
||||
@@ -2087,11 +2081,8 @@ extern void dm_change_dynamic_initgain_thresh(struct net_device *dev,
|
||||
dm_digtable.rx_gain_range_max = (u8)dm_value;
|
||||
}
|
||||
} /* DM_ChangeDynamicInitGainThresh */
|
||||
extern void
|
||||
dm_change_fsync_setting(
|
||||
struct net_device *dev,
|
||||
s32 DM_Type,
|
||||
s32 DM_Value)
|
||||
|
||||
static void dm_change_fsync_setting(struct net_device *dev, s32 DM_Type, s32 DM_Value)
|
||||
{
|
||||
struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
|
||||
@@ -2104,11 +2095,7 @@ dm_change_fsync_setting(
|
||||
}
|
||||
}
|
||||
|
||||
extern void
|
||||
dm_change_rxpath_selection_setting(
|
||||
struct net_device *dev,
|
||||
s32 DM_Type,
|
||||
s32 DM_Value)
|
||||
static void dm_change_rxpath_selection_setting(struct net_device *dev, s32 DM_Type, s32 DM_Value)
|
||||
{
|
||||
struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
prate_adaptive pRA = (prate_adaptive)&(priv->rate_adaptive);
|
||||
@@ -2183,9 +2170,7 @@ dm_change_rxpath_selection_setting(
|
||||
}
|
||||
|
||||
#if 0
|
||||
extern void dm_force_tx_fw_info(struct net_device *dev,
|
||||
u32 force_type,
|
||||
u32 force_value)
|
||||
void dm_force_tx_fw_info(struct net_device *dev, u32 force_type, u32 force_value)
|
||||
{
|
||||
struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
|
||||
@@ -2832,7 +2817,7 @@ static void dm_cs_ratio(
|
||||
}
|
||||
}
|
||||
|
||||
extern void dm_init_edca_turbo(struct net_device * dev)
|
||||
void dm_init_edca_turbo(struct net_device *dev)
|
||||
{
|
||||
struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
|
||||
@@ -2956,7 +2941,7 @@ dm_CheckEdcaTurbo_EXIT:
|
||||
} // dm_CheckEdcaTurbo
|
||||
#endif
|
||||
|
||||
extern void DM_CTSToSelfSetting(struct net_device * dev,u32 DM_Type, u32 DM_Value)
|
||||
static void DM_CTSToSelfSetting(struct net_device *dev, u32 DM_Type, u32 DM_Value)
|
||||
{
|
||||
struct r8192_priv *priv = ieee80211_priv((struct net_device *)dev);
|
||||
|
||||
@@ -3054,7 +3039,7 @@ static void dm_ctstoself(struct net_device *dev)
|
||||
* 05/29/2008 amy Create Version 0 porting from windows code.
|
||||
*
|
||||
*---------------------------------------------------------------------------*/
|
||||
extern void dm_rf_operation_test_callback(unsigned long dev)
|
||||
void dm_rf_operation_test_callback(unsigned long dev)
|
||||
{
|
||||
// struct r8192_priv *priv = ieee80211_priv((struct net_device *)dev);
|
||||
u8 erfpath;
|
||||
@@ -3215,7 +3200,7 @@ static void dm_check_pbc_gpio(struct net_device *dev)
|
||||
*
|
||||
*---------------------------------------------------------------------------*/
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20))
|
||||
extern void dm_gpio_change_rf_callback(struct work_struct *work)
|
||||
void dm_gpio_change_rf_callback(struct work_struct *work)
|
||||
{
|
||||
struct delayed_work *dwork = container_of(work,struct delayed_work,work);
|
||||
struct r8192_priv *priv = container_of(dwork,struct r8192_priv,gpio_change_rf_wq);
|
||||
@@ -3291,7 +3276,7 @@ extern void dm_gpio_change_rf_callback(struct net_device *dev)
|
||||
*
|
||||
*---------------------------------------------------------------------------*/
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20))
|
||||
extern void dm_rf_pathcheck_workitemcallback(struct work_struct *work)
|
||||
void dm_rf_pathcheck_workitemcallback(struct work_struct *work)
|
||||
{
|
||||
struct delayed_work *dwork = container_of(work,struct delayed_work,work);
|
||||
struct r8192_priv *priv = container_of(dwork,struct r8192_priv,rfpath_check_wq);
|
||||
@@ -3667,7 +3652,7 @@ static void dm_deInit_fsync(struct net_device *dev)
|
||||
del_timer_sync(&priv->fsync_timer);
|
||||
}
|
||||
|
||||
extern void dm_fsync_timer_callback(unsigned long data)
|
||||
void dm_fsync_timer_callback(unsigned long data)
|
||||
{
|
||||
struct net_device *dev = (struct net_device *)data;
|
||||
struct r8192_priv *priv = ieee80211_priv((struct net_device *)data);
|
||||
@@ -4092,7 +4077,7 @@ extern s1Byte DM_CheckLBusStatus(IN PADAPTER Adapter)
|
||||
* 05/29/2008 amy Create Version 0 porting from windows code.
|
||||
*
|
||||
*---------------------------------------------------------------------------*/
|
||||
extern void dm_shadow_init(struct net_device *dev)
|
||||
void dm_shadow_init(struct net_device *dev)
|
||||
{
|
||||
u8 page;
|
||||
u16 offset;
|
||||
|
||||
@@ -20,12 +20,13 @@
|
||||
#include <linux/string.h>
|
||||
#include "r8192E.h"
|
||||
#include "r8192E_hw.h"
|
||||
#include "r8192E_wx.h"
|
||||
#ifdef ENABLE_DOT11D
|
||||
#include "dot11d.h"
|
||||
#endif
|
||||
|
||||
#define RATE_COUNT 12
|
||||
u32 rtl8180_rates[] = {1000000,2000000,5500000,11000000,
|
||||
static u32 rtl8180_rates[] = {1000000,2000000,5500000,11000000,
|
||||
6000000,9000000,12000000,18000000,24000000,36000000,48000000,54000000};
|
||||
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
* 05/06/2008 amy porting from windows code.
|
||||
*
|
||||
*---------------------------------------------------------------------------*/
|
||||
extern RT_STATUS cmpk_message_handle_tx(
|
||||
RT_STATUS cmpk_message_handle_tx(
|
||||
struct net_device *dev,
|
||||
u8* code_virtual_address,
|
||||
u32 packettype,
|
||||
@@ -352,10 +352,7 @@ cmpk_handle_tx_feedback(
|
||||
|
||||
} /* cmpk_Handle_Tx_Feedback */
|
||||
|
||||
void
|
||||
cmdpkt_beacontimerinterrupt_819xusb(
|
||||
struct net_device *dev
|
||||
)
|
||||
static void cmdpkt_beacontimerinterrupt_819xusb(struct net_device *dev)
|
||||
{
|
||||
struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
u16 tx_rate;
|
||||
@@ -713,10 +710,7 @@ cmpk_handle_tx_rate_history(
|
||||
* 05/06/2008 amy Create Version 0 porting from windows code.
|
||||
*
|
||||
*---------------------------------------------------------------------------*/
|
||||
extern u32
|
||||
cmpk_message_handle_rx(
|
||||
struct net_device *dev,
|
||||
struct ieee80211_rx_stats *pstats)
|
||||
u32 cmpk_message_handle_rx(struct net_device *dev, struct ieee80211_rx_stats *pstats)
|
||||
{
|
||||
// u32 debug_level = DBG_LOUD;
|
||||
struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <linux/firmware.h>
|
||||
#endif
|
||||
|
||||
extern void firmware_init_param(struct net_device *dev)
|
||||
void firmware_init_param(struct net_device *dev)
|
||||
{
|
||||
struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
rt_firmware *pfirmware = priv->pFirmware;
|
||||
@@ -36,7 +36,7 @@ extern void firmware_init_param(struct net_device *dev)
|
||||
* segment the img and use the ptr and length to remember info on each segment
|
||||
*
|
||||
*/
|
||||
bool fw_download_code(struct net_device *dev, u8 *code_virtual_address, u32 buffer_len)
|
||||
static bool fw_download_code(struct net_device *dev, u8 *code_virtual_address, u32 buffer_len)
|
||||
{
|
||||
struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
bool rt_status = true;
|
||||
@@ -107,7 +107,7 @@ cmdsend_downloadcode_fail:
|
||||
#endif
|
||||
}
|
||||
|
||||
bool
|
||||
static bool
|
||||
fwSendNullPacket(
|
||||
struct net_device *dev,
|
||||
u32 Length
|
||||
@@ -159,7 +159,7 @@ fwSendNullPacket(
|
||||
// NDIS_STATUS_FAILURE - the following initialization process should be terminated
|
||||
// NDIS_STATUS_SUCCESS - if firmware initialization process success
|
||||
//-----------------------------------------------------------------------------
|
||||
bool CPUcheck_maincodeok_turnonCPU(struct net_device *dev)
|
||||
static bool CPUcheck_maincodeok_turnonCPU(struct net_device *dev)
|
||||
{
|
||||
bool rt_status = true;
|
||||
int check_putcodeOK_time = 200000, check_bootOk_time = 200000;
|
||||
@@ -208,7 +208,7 @@ CPUCheckMainCodeOKAndTurnOnCPU_Fail:
|
||||
return rt_status;
|
||||
}
|
||||
|
||||
bool CPUcheck_firmware_ready(struct net_device *dev)
|
||||
static bool CPUcheck_firmware_ready(struct net_device *dev)
|
||||
{
|
||||
|
||||
bool rt_status = true;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
/*Created on 2008/ 8/28, 11:46*/
|
||||
#include <linux/types.h>
|
||||
|
||||
u8 rtl8192e_fwboot_array[] = {
|
||||
static u8 rtl8192e_fwboot_array[] = {
|
||||
0x10,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x3c,0x08,0xbf,0xc0,0x25,0x08,0x00,0x08,
|
||||
0x3c,0x09,0xb0,0x03,0xad,0x28,0x00,0x20,0x40,0x80,0x68,0x00,0x00,0x00,0x00,0x00,
|
||||
0x3c,0x0a,0xd0,0x00,0x40,0x8a,0x60,0x00,0x00,0x00,0x00,0x00,0x3c,0x08,0x80,0x01,
|
||||
@@ -28,7 +28,7 @@ u8 rtl8192e_fwboot_array[] = {
|
||||
0xad,0x09,0x00,0x00,0x00,0x00,0x00,0x00,0x3c,0x08,0x80,0x00,0x25,0x08,0x4b,0x94,
|
||||
0x01,0x00,0x00,0x08,0x00,0x00,0x00,0x00,};
|
||||
|
||||
u8 rtl8192e_fwmain_array[] = {
|
||||
static u8 rtl8192e_fwmain_array[] = {
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
@@ -2719,7 +2719,7 @@ u8 rtl8192e_fwmain_array[] = {
|
||||
0xa3,0xa3,0x00,0x00,0xa0,0x40,0x00,0x00,0x90,0x43,0x00,0x00,0x03,0xe0,0x00,0x08,
|
||||
0x27,0xbd,0x00,0x08,};
|
||||
|
||||
u8 rtl8192e_fwdata_array[] = {
|
||||
static u8 rtl8192e_fwdata_array[] = {
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x10,0x00,0x08,0x00,
|
||||
0x02,0xe9,0x01,0x74,0x02,0xab,0x01,0xc7,0x01,0x55,0x00,0xe4,0x00,0xab,0x00,0x72,
|
||||
0x00,0x55,0x00,0x4c,0x00,0x4c,0x00,0x4c,0x00,0x4c,0x00,0x4c,0x02,0x76,0x01,0x3b,
|
||||
|
||||
@@ -857,7 +857,7 @@ u32 Rtl8190PciRadioD_Array[RadioD_ArrayLength] = {
|
||||
};
|
||||
#endif
|
||||
#ifdef RTL8192E
|
||||
u32 Rtl8192PciEMACPHY_Array[] = {
|
||||
static u32 Rtl8192PciEMACPHY_Array[] = {
|
||||
0x03c,0xffff0000,0x00000f0f,
|
||||
0x340,0xffffffff,0x161a1a1a,
|
||||
0x344,0xffffffff,0x12121416,
|
||||
@@ -865,7 +865,7 @@ u32 Rtl8192PciEMACPHY_Array[] = {
|
||||
0x12c,0xffffffff,0x04000802,
|
||||
0x318,0x00000fff,0x00000100,
|
||||
};
|
||||
u32 Rtl8192PciEMACPHY_Array_PG[] = {
|
||||
static u32 Rtl8192PciEMACPHY_Array_PG[] = {
|
||||
0x03c,0xffff0000,0x00000f0f,
|
||||
0xe00,0xffffffff,0x06090909,
|
||||
0xe04,0xffffffff,0x00030306,
|
||||
@@ -877,7 +877,7 @@ u32 Rtl8192PciEMACPHY_Array_PG[] = {
|
||||
0x12c,0xffffffff,0x04000802,
|
||||
0x318,0x00000fff,0x00000800,
|
||||
};
|
||||
u32 Rtl8192PciEAGCTAB_Array[AGCTAB_ArrayLength] = {
|
||||
static u32 Rtl8192PciEAGCTAB_Array[AGCTAB_ArrayLength] = {
|
||||
0xc78,0x7d000001,
|
||||
0xc78,0x7d010001,
|
||||
0xc78,0x7d020001,
|
||||
@@ -1071,9 +1071,9 @@ u32 Rtl8192PciEAGCTAB_Array[AGCTAB_ArrayLength] = {
|
||||
0xc78,0x693e001e,
|
||||
0xc78,0x6a3f001e,
|
||||
};
|
||||
u32 Rtl8192PciEPHY_REGArray[PHY_REGArrayLength] = {
|
||||
static u32 Rtl8192PciEPHY_REGArray[PHY_REGArrayLength] = {
|
||||
0x0, };
|
||||
u32 Rtl8192PciEPHY_REG_1T2RArray[PHY_REG_1T2RArrayLength] = {
|
||||
static u32 Rtl8192PciEPHY_REG_1T2RArray[PHY_REG_1T2RArrayLength] = {
|
||||
0x800,0x00000000,
|
||||
0x804,0x00000001,
|
||||
0x808,0x0000fc00,
|
||||
@@ -1223,7 +1223,7 @@ u32 Rtl8192PciEPHY_REG_1T2RArray[PHY_REG_1T2RArrayLength] = {
|
||||
0xe18,0x161a1a1a,
|
||||
0xe1c,0x12121416,
|
||||
};
|
||||
u32 Rtl8192PciERadioA_Array[RadioA_ArrayLength] = {
|
||||
static u32 Rtl8192PciERadioA_Array[RadioA_ArrayLength] = {
|
||||
0x019,0x00000003,
|
||||
0x000,0x000000bf,
|
||||
0x001,0x00000ee0,
|
||||
@@ -1348,7 +1348,7 @@ u32 Rtl8192PciERadioA_Array[RadioA_ArrayLength] = {
|
||||
0x004,0x00000975,
|
||||
0x007,0x00000700,
|
||||
};
|
||||
u32 Rtl8192PciERadioB_Array[RadioB_ArrayLength] = {
|
||||
static u32 Rtl8192PciERadioB_Array[RadioB_ArrayLength] = {
|
||||
0x019,0x00000003,
|
||||
0x000,0x000000bf,
|
||||
0x001,0x000006e0,
|
||||
@@ -1389,9 +1389,9 @@ u32 Rtl8192PciERadioB_Array[RadioB_ArrayLength] = {
|
||||
0x004,0x00000975,
|
||||
0x007,0x00000700,
|
||||
};
|
||||
u32 Rtl8192PciERadioC_Array[RadioC_ArrayLength] = {
|
||||
static u32 Rtl8192PciERadioC_Array[RadioC_ArrayLength] = {
|
||||
0x0, };
|
||||
u32 Rtl8192PciERadioD_Array[RadioD_ArrayLength] = {
|
||||
static u32 Rtl8192PciERadioD_Array[RadioD_ArrayLength] = {
|
||||
0x0, };
|
||||
#endif
|
||||
|
||||
@@ -1407,7 +1407,7 @@ static void phy_FwRFSerialWrite(struct net_device* dev,RF90_RADIO_PATH_E eRFPath
|
||||
* output: none
|
||||
* return: u32 return the shift bit bit position of the mask
|
||||
* ****************************************************************************/
|
||||
u32 rtl8192_CalculateBitShift(u32 dwBitMask)
|
||||
static u32 rtl8192_CalculateBitShift(u32 dwBitMask)
|
||||
{
|
||||
u32 i;
|
||||
for (i=0; i<=31; i++)
|
||||
@@ -1507,7 +1507,7 @@ u32 rtl8192_QueryBBReg(struct net_device* dev, u32 dwRegAddr, u32 dwBitMask)
|
||||
* return: u32 readback value
|
||||
* notice: There are three types of serial operations:(1) Software serial write.(2)Hardware LSSI-Low Speed Serial Interface.(3)Hardware HSSI-High speed serial write. Driver here need to implement (1) and (2)---need more spec for this information.
|
||||
* ****************************************************************************/
|
||||
u32 rtl8192_phy_RFSerialRead(struct net_device* dev, RF90_RADIO_PATH_E eRFPath, u32 Offset)
|
||||
static u32 rtl8192_phy_RFSerialRead(struct net_device* dev, RF90_RADIO_PATH_E eRFPath, u32 Offset)
|
||||
{
|
||||
struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
u32 ret = 0;
|
||||
@@ -1623,7 +1623,7 @@ u32 rtl8192_phy_RFSerialRead(struct net_device* dev, RF90_RADIO_PATH_E eRFPath,
|
||||
* Reg_Mode2 1 1 Reg 31 ~ 45(0x1 ~ 0xf)
|
||||
*------------------------------------------------------------------
|
||||
* ****************************************************************************/
|
||||
void rtl8192_phy_RFSerialWrite(struct net_device* dev, RF90_RADIO_PATH_E eRFPath, u32 Offset, u32 Data)
|
||||
static void rtl8192_phy_RFSerialWrite(struct net_device* dev, RF90_RADIO_PATH_E eRFPath, u32 Offset, u32 Data)
|
||||
{
|
||||
struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
u32 DataAndAddr = 0, NewOffset = 0;
|
||||
@@ -2051,7 +2051,7 @@ void rtl8192_phyConfigBB(struct net_device* dev, u8 ConfigType)
|
||||
* return: none
|
||||
* notice: Initialization value here is constant and it should never be changed
|
||||
* ***************************************************************************/
|
||||
void rtl8192_InitBBRFRegDef(struct net_device* dev)
|
||||
static void rtl8192_InitBBRFRegDef(struct net_device* dev)
|
||||
{
|
||||
struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
// RF Interface Sowrtware Control
|
||||
@@ -2236,7 +2236,7 @@ RT_STATUS rtl8192_phy_checkBBAndRF(struct net_device* dev, HW90_BLOCK_E CheckBlo
|
||||
* notice: Initialization value may change all the time, so please make
|
||||
* sure it has been synced with the newest.
|
||||
* ***************************************************************************/
|
||||
RT_STATUS rtl8192_BB_Config_ParaFile(struct net_device* dev)
|
||||
static RT_STATUS rtl8192_BB_Config_ParaFile(struct net_device* dev)
|
||||
{
|
||||
struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
RT_STATUS rtStatus = RT_STATUS_SUCCESS;
|
||||
@@ -2627,7 +2627,7 @@ u8 rtl8192_phy_ConfigRFWithHeaderFile(struct net_device* dev, RF90_RADIO_PATH_E
|
||||
* return: none
|
||||
* Note:
|
||||
* ***************************************************************************/
|
||||
void rtl8192_SetTxPowerLevel(struct net_device *dev, u8 channel)
|
||||
static void rtl8192_SetTxPowerLevel(struct net_device *dev, u8 channel)
|
||||
{
|
||||
struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
u8 powerlevel = priv->TxPowerLevelCCK[channel-1];
|
||||
@@ -2668,7 +2668,7 @@ void rtl8192_SetTxPowerLevel(struct net_device *dev, u8 channel)
|
||||
* return: true if finished, false otherwise
|
||||
* Note:
|
||||
* ************************************************************************************/
|
||||
u8 rtl8192_phy_SetSwChnlCmdArray(
|
||||
static u8 rtl8192_phy_SetSwChnlCmdArray(
|
||||
SwChnlCmd* CmdTable,
|
||||
u32 CmdTableIdx,
|
||||
u32 CmdTableSz,
|
||||
@@ -2711,7 +2711,7 @@ u8 rtl8192_phy_SetSwChnlCmdArray(
|
||||
* return: true if finished, false otherwise
|
||||
* Note: Wait for simpler function to replace it //wb
|
||||
* ***************************************************************************/
|
||||
u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel, u8* stage, u8* step, u32* delay)
|
||||
static u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel, u8* stage, u8* step, u32* delay)
|
||||
{
|
||||
struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
// PCHANNEL_ACCESS_SETTING pChnlAccessSetting;
|
||||
@@ -2863,7 +2863,7 @@ u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel, u8* stage, u
|
||||
* return: noin
|
||||
* Note: We should not call this function directly
|
||||
* ***************************************************************************/
|
||||
void rtl8192_phy_FinishSwChnlNow(struct net_device *dev, u8 channel)
|
||||
static void rtl8192_phy_FinishSwChnlNow(struct net_device *dev, u8 channel)
|
||||
{
|
||||
struct r8192_priv *priv = ieee80211_priv(dev);
|
||||
u32 delay = 0;
|
||||
@@ -3279,7 +3279,7 @@ void rtl8192_SetBWMode(struct net_device *dev, HT_CHANNEL_WIDTH Bandwidth, HT_EX
|
||||
}
|
||||
|
||||
|
||||
extern void InitialGain819xPci(struct net_device *dev, u8 Operation)
|
||||
void InitialGain819xPci(struct net_device *dev, u8 Operation)
|
||||
{
|
||||
#define SCAN_RX_INITIAL_GAIN 0x17
|
||||
#define POWER_DETECTION_TH 0x08
|
||||
|
||||
Reference in New Issue
Block a user