Commit f68057e6 authored by Joe Perches's avatar Joe Perches Committed by Greg Kroah-Hartman

staging: ath6kl: Convert A_INT32 to s32

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent cb1e3709
...@@ -465,10 +465,10 @@ static int async_task(void *param) ...@@ -465,10 +465,10 @@ static int async_task(void *param)
return 0; return 0;
} }
static A_INT32 IssueSDCommand(HIF_DEVICE *device, u32 opcode, u32 arg, u32 flags, u32 *resp) static s32 IssueSDCommand(HIF_DEVICE *device, u32 opcode, u32 arg, u32 flags, u32 *resp)
{ {
struct mmc_command cmd; struct mmc_command cmd;
A_INT32 err; s32 err;
struct mmc_host *host; struct mmc_host *host;
struct sdio_func *func; struct sdio_func *func;
...@@ -490,7 +490,7 @@ static A_INT32 IssueSDCommand(HIF_DEVICE *device, u32 opcode, u32 arg, u32 flags ...@@ -490,7 +490,7 @@ static A_INT32 IssueSDCommand(HIF_DEVICE *device, u32 opcode, u32 arg, u32 flags
int ReinitSDIO(HIF_DEVICE *device) int ReinitSDIO(HIF_DEVICE *device)
{ {
A_INT32 err; s32 err;
struct mmc_host *host; struct mmc_host *host;
struct mmc_card *card; struct mmc_card *card;
struct sdio_func *func; struct sdio_func *func;
...@@ -1153,7 +1153,7 @@ static void hifDeviceRemoved(struct sdio_func *func) ...@@ -1153,7 +1153,7 @@ static void hifDeviceRemoved(struct sdio_func *func)
*/ */
int hifWaitForPendingRecv(HIF_DEVICE *device) int hifWaitForPendingRecv(HIF_DEVICE *device)
{ {
A_INT32 cnt = 10; s32 cnt = 10;
u8 host_int_status; u8 host_int_status;
int status = A_OK; int status = A_OK;
...@@ -1280,7 +1280,7 @@ static int Func0_CMD52ReadByte(struct mmc_card *card, unsigned int address, unsi ...@@ -1280,7 +1280,7 @@ static int Func0_CMD52ReadByte(struct mmc_card *card, unsigned int address, unsi
{ {
struct mmc_command ioCmd; struct mmc_command ioCmd;
unsigned long arg; unsigned long arg;
A_INT32 err; s32 err;
memset(&ioCmd,0,sizeof(ioCmd)); memset(&ioCmd,0,sizeof(ioCmd));
SDIO_SET_CMD52_READ_ARG(arg,0,address); SDIO_SET_CMD52_READ_ARG(arg,0,address);
......
...@@ -64,7 +64,7 @@ HTC_PACKET *HTCAllocControlBuffer(HTC_TARGET *target, HTC_PACKET_QUEUE *pList) ...@@ -64,7 +64,7 @@ HTC_PACKET *HTCAllocControlBuffer(HTC_TARGET *target, HTC_PACKET_QUEUE *pList)
/* cleanup the HTC instance */ /* cleanup the HTC instance */
static void HTCCleanup(HTC_TARGET *target) static void HTCCleanup(HTC_TARGET *target)
{ {
A_INT32 i; s32 i;
DevCleanup(&target->Device); DevCleanup(&target->Device);
......
...@@ -86,7 +86,7 @@ typedef PREPACK struct { ...@@ -86,7 +86,7 @@ typedef PREPACK struct {
u32 mode; u32 mode;
u32 freq; u32 freq;
u32 dataRate; u32 dataRate;
A_INT32 txPwr; s32 txPwr;
u32 antenna; u32 antenna;
u32 enANI; u32 enANI;
u32 scramblerOff; u32 scramblerOff;
...@@ -135,7 +135,7 @@ typedef PREPACK struct { ...@@ -135,7 +135,7 @@ typedef PREPACK struct {
} POSTPACK para; } POSTPACK para;
struct PREPACK TCMD_CONT_RX_REPORT { struct PREPACK TCMD_CONT_RX_REPORT {
u32 totalPkt; u32 totalPkt;
A_INT32 rssiInDBm; s32 rssiInDBm;
u32 crcErrPkt; u32 crcErrPkt;
u32 secErrPkt; u32 secErrPkt;
u16 rateCnt[TCMD_MAX_RATES]; u16 rateCnt[TCMD_MAX_RATES];
......
...@@ -2155,7 +2155,7 @@ typedef PREPACK struct { ...@@ -2155,7 +2155,7 @@ typedef PREPACK struct {
* WMI_SCAN_COMPLETE_EVENTID - no parameters (old), staus parameter (new) * WMI_SCAN_COMPLETE_EVENTID - no parameters (old), staus parameter (new)
*/ */
typedef PREPACK struct { typedef PREPACK struct {
A_INT32 status; s32 status;
} POSTPACK WMI_SCAN_COMPLETE_EVENT; } POSTPACK WMI_SCAN_COMPLETE_EVENT;
#define MAX_OPT_DATA_LEN 1400 #define MAX_OPT_DATA_LEN 1400
...@@ -2233,7 +2233,7 @@ typedef PREPACK struct { ...@@ -2233,7 +2233,7 @@ typedef PREPACK struct {
u32 tx_retry_cnt; u32 tx_retry_cnt;
u32 tx_mult_retry_cnt; u32 tx_mult_retry_cnt;
u32 tx_rts_fail_cnt; u32 tx_rts_fail_cnt;
A_INT32 tx_unicast_rate; s32 tx_unicast_rate;
}POSTPACK tx_stats_t; }POSTPACK tx_stats_t;
typedef PREPACK struct { typedef PREPACK struct {
...@@ -2252,7 +2252,7 @@ typedef PREPACK struct { ...@@ -2252,7 +2252,7 @@ typedef PREPACK struct {
u32 rx_key_cache_miss; u32 rx_key_cache_miss;
u32 rx_decrypt_err; u32 rx_decrypt_err;
u32 rx_duplicate_frames; u32 rx_duplicate_frames;
A_INT32 rx_unicast_rate; s32 rx_unicast_rate;
}POSTPACK rx_stats_t; }POSTPACK rx_stats_t;
typedef PREPACK struct { typedef PREPACK struct {
...@@ -2306,7 +2306,7 @@ typedef PREPACK struct { ...@@ -2306,7 +2306,7 @@ typedef PREPACK struct {
typedef PREPACK struct { typedef PREPACK struct {
u32 lqVal; u32 lqVal;
A_INT32 noise_floor_calibation; s32 noise_floor_calibation;
pm_stats_t pmStats; pm_stats_t pmStats;
wlan_net_stats_t txrxStats; wlan_net_stats_t txrxStats;
wlan_wow_stats_t wowStats; wlan_wow_stats_t wowStats;
...@@ -2388,7 +2388,7 @@ typedef enum{ ...@@ -2388,7 +2388,7 @@ typedef enum{
} WMI_LQ_THRESHOLD_VAL; } WMI_LQ_THRESHOLD_VAL;
typedef PREPACK struct { typedef PREPACK struct {
A_INT32 lq; s32 lq;
u8 range; /* WMI_LQ_THRESHOLD_VAL */ u8 range; /* WMI_LQ_THRESHOLD_VAL */
}POSTPACK WMI_LQ_THRESHOLD_EVENT; }POSTPACK WMI_LQ_THRESHOLD_EVENT;
/* /*
...@@ -2397,7 +2397,7 @@ typedef PREPACK struct { ...@@ -2397,7 +2397,7 @@ typedef PREPACK struct {
#define MAX_ROAM_TBL_CAND 5 #define MAX_ROAM_TBL_CAND 5
typedef PREPACK struct { typedef PREPACK struct {
A_INT32 roam_util; s32 roam_util;
u8 bssid[ATH_MAC_LEN]; u8 bssid[ATH_MAC_LEN];
s8 rssi; s8 rssi;
s8 rssidt; s8 rssidt;
......
...@@ -37,7 +37,7 @@ typedef struct _COMMON_CREDIT_STATE_INFO { ...@@ -37,7 +37,7 @@ typedef struct _COMMON_CREDIT_STATE_INFO {
} COMMON_CREDIT_STATE_INFO; } COMMON_CREDIT_STATE_INFO;
typedef struct { typedef struct {
A_INT32 (*setupTransport)(void *ar); s32 (*setupTransport)(void *ar);
void (*cleanupTransport)(void *ar); void (*cleanupTransport)(void *ar);
} HCI_TRANSPORT_CALLBACKS; } HCI_TRANSPORT_CALLBACKS;
......
...@@ -153,9 +153,9 @@ int wmi_sync_cmd(struct wmi_t *wmip, u8 syncNumber); ...@@ -153,9 +153,9 @@ int wmi_sync_cmd(struct wmi_t *wmip, u8 syncNumber);
int wmi_create_pstream_cmd(struct wmi_t *wmip, WMI_CREATE_PSTREAM_CMD *pstream); int wmi_create_pstream_cmd(struct wmi_t *wmip, WMI_CREATE_PSTREAM_CMD *pstream);
int wmi_delete_pstream_cmd(struct wmi_t *wmip, u8 trafficClass, u8 streamID); int wmi_delete_pstream_cmd(struct wmi_t *wmip, u8 trafficClass, u8 streamID);
int wmi_set_framerate_cmd(struct wmi_t *wmip, u8 bEnable, u8 type, u8 subType, u16 rateMask); int wmi_set_framerate_cmd(struct wmi_t *wmip, u8 bEnable, u8 type, u8 subType, u16 rateMask);
int wmi_set_bitrate_cmd(struct wmi_t *wmip, A_INT32 dataRate, A_INT32 mgmtRate, A_INT32 ctlRate); int wmi_set_bitrate_cmd(struct wmi_t *wmip, s32 dataRate, s32 mgmtRate, s32 ctlRate);
int wmi_get_bitrate_cmd(struct wmi_t *wmip); int wmi_get_bitrate_cmd(struct wmi_t *wmip);
s8 wmi_validate_bitrate(struct wmi_t *wmip, A_INT32 rate, s8 *rate_idx); s8 wmi_validate_bitrate(struct wmi_t *wmip, s32 rate, s8 *rate_idx);
int wmi_get_regDomain_cmd(struct wmi_t *wmip); int wmi_get_regDomain_cmd(struct wmi_t *wmip);
int wmi_get_channelList_cmd(struct wmi_t *wmip); int wmi_get_channelList_cmd(struct wmi_t *wmip);
int wmi_set_channelParams_cmd(struct wmi_t *wmip, u8 scanParam, int wmi_set_channelParams_cmd(struct wmi_t *wmip, u8 scanParam,
...@@ -295,7 +295,7 @@ int wmi_set_appie_cmd(struct wmi_t *wmip, u8 mgmtFrmType, ...@@ -295,7 +295,7 @@ int wmi_set_appie_cmd(struct wmi_t *wmip, u8 mgmtFrmType,
int wmi_set_halparam_cmd(struct wmi_t *wmip, u8 *cmd, u16 dataLen); int wmi_set_halparam_cmd(struct wmi_t *wmip, u8 *cmd, u16 dataLen);
A_INT32 wmi_get_rate(s8 rateindex); s32 wmi_get_rate(s8 rateindex);
int wmi_set_ip_cmd(struct wmi_t *wmip, WMI_SET_IP_CMD *cmd); int wmi_set_ip_cmd(struct wmi_t *wmip, WMI_SET_IP_CMD *cmd);
......
...@@ -87,7 +87,7 @@ int ar6000_SetAddressWindowRegister(HIF_DEVICE *hifDevice, u32 RegisterAddr, u32 ...@@ -87,7 +87,7 @@ int ar6000_SetAddressWindowRegister(HIF_DEVICE *hifDevice, u32 RegisterAddr, u32
{ {
int status; int status;
u8 addrValue[4]; u8 addrValue[4];
A_INT32 i; s32 i;
/* write bytes 1,2,3 of the register to set the upper address bytes, the LSB is written /* write bytes 1,2,3 of the register to set the upper address bytes, the LSB is written
* last to initiate the access cycle */ * last to initiate the access cycle */
...@@ -358,10 +358,10 @@ _do_write_diag(HIF_DEVICE *hifDevice, u32 addr, u32 value) ...@@ -358,10 +358,10 @@ _do_write_diag(HIF_DEVICE *hifDevice, u32 addr, u32 value)
*/ */
#if 0 #if 0
static int static int
_delay_until_target_alive(HIF_DEVICE *hifDevice, A_INT32 wait_msecs, u32 TargetType) _delay_until_target_alive(HIF_DEVICE *hifDevice, s32 wait_msecs, u32 TargetType)
{ {
A_INT32 actual_wait; s32 actual_wait;
A_INT32 i; s32 i;
u32 address; u32 address;
actual_wait = 0; actual_wait = 0;
...@@ -485,7 +485,7 @@ ar6000_copy_cust_data_from_target(HIF_DEVICE *hifDevice, u32 TargetType) ...@@ -485,7 +485,7 @@ ar6000_copy_cust_data_from_target(HIF_DEVICE *hifDevice, u32 TargetType)
{ {
u32 eepHeaderAddr; u32 eepHeaderAddr;
u8 AR6003CustDataShadow[AR6003_CUST_DATA_SIZE+4]; u8 AR6003CustDataShadow[AR6003_CUST_DATA_SIZE+4];
A_INT32 i; s32 i;
if (BMIReadMemory(hifDevice, if (BMIReadMemory(hifDevice,
HOST_INTEREST_ITEM_ADDRESS(TargetType, hi_board_data), HOST_INTEREST_ITEM_ADDRESS(TargetType, hi_board_data),
...@@ -727,13 +727,13 @@ int ar6000_prepare_target(HIF_DEVICE *hifDevice, ...@@ -727,13 +727,13 @@ int ar6000_prepare_target(HIF_DEVICE *hifDevice,
int int
ar6002_REV1_reset_force_host (HIF_DEVICE *hifDevice) ar6002_REV1_reset_force_host (HIF_DEVICE *hifDevice)
{ {
A_INT32 i; s32 i;
struct forceROM_s { struct forceROM_s {
u32 addr; u32 addr;
u32 data; u32 data;
}; };
struct forceROM_s *ForceROM; struct forceROM_s *ForceROM;
A_INT32 szForceROM; s32 szForceROM;
int status = A_OK; int status = A_OK;
u32 address; u32 address;
u32 data; u32 data;
......
...@@ -453,14 +453,14 @@ ar6000_dbglog_init_done(AR_SOFTC_T *ar) ...@@ -453,14 +453,14 @@ ar6000_dbglog_init_done(AR_SOFTC_T *ar)
u32 dbglog_get_debug_fragment(s8 *datap, u32 len, u32 limit) u32 dbglog_get_debug_fragment(s8 *datap, u32 len, u32 limit)
{ {
A_INT32 *buffer; s32 *buffer;
u32 count; u32 count;
u32 numargs; u32 numargs;
u32 length; u32 length;
u32 fraglen; u32 fraglen;
count = fraglen = 0; count = fraglen = 0;
buffer = (A_INT32 *)datap; buffer = (s32 *)datap;
length = (limit >> 2); length = (limit >> 2);
if (len <= limit) { if (len <= limit) {
...@@ -479,7 +479,7 @@ u32 dbglog_get_debug_fragment(s8 *datap, u32 len, u32 limit) ...@@ -479,7 +479,7 @@ u32 dbglog_get_debug_fragment(s8 *datap, u32 len, u32 limit)
void void
dbglog_parse_debug_logs(s8 *datap, u32 len) dbglog_parse_debug_logs(s8 *datap, u32 len)
{ {
A_INT32 *buffer; s32 *buffer;
u32 count; u32 count;
u32 timestamp; u32 timestamp;
u32 debugid; u32 debugid;
...@@ -488,7 +488,7 @@ dbglog_parse_debug_logs(s8 *datap, u32 len) ...@@ -488,7 +488,7 @@ dbglog_parse_debug_logs(s8 *datap, u32 len)
u32 length; u32 length;
count = 0; count = 0;
buffer = (A_INT32 *)datap; buffer = (s32 *)datap;
length = (len >> 2); length = (len >> 2);
while (count < length) { while (count < length) {
debugid = DBGLOG_GET_DBGID(buffer[count]); debugid = DBGLOG_GET_DBGID(buffer[count]);
...@@ -2429,7 +2429,7 @@ int ar6000_init(struct net_device *dev) ...@@ -2429,7 +2429,7 @@ int ar6000_init(struct net_device *dev)
{ {
AR_SOFTC_T *ar; AR_SOFTC_T *ar;
int status; int status;
A_INT32 timeleft; s32 timeleft;
s16 i; s16 i;
int ret = 0; int ret = 0;
#if defined(INIT_MODE_DRV_ENABLED) && defined(ENABLE_COEXISTENCE) #if defined(INIT_MODE_DRV_ENABLED) && defined(ENABLE_COEXISTENCE)
...@@ -2767,7 +2767,7 @@ int ar6000_init(struct net_device *dev) ...@@ -2767,7 +2767,7 @@ int ar6000_init(struct net_device *dev)
void void
ar6000_bitrate_rx(void *devt, A_INT32 rateKbps) ar6000_bitrate_rx(void *devt, s32 rateKbps)
{ {
AR_SOFTC_T *ar = (AR_SOFTC_T *)devt; AR_SOFTC_T *ar = (AR_SOFTC_T *)devt;
...@@ -5826,8 +5826,7 @@ read_rssi_compensation_param(AR_SOFTC_T *ar) ...@@ -5826,8 +5826,7 @@ read_rssi_compensation_param(AR_SOFTC_T *ar)
return; return;
} }
A_INT32 s32 rssi_compensation_calc_tcmd(u32 freq, s32 rssi, u32 totalPkt)
rssi_compensation_calc_tcmd(u32 freq, A_INT32 rssi, u32 totalPkt)
{ {
if (freq > 5000) if (freq > 5000)
......
...@@ -496,7 +496,7 @@ typedef struct ar6_softc { ...@@ -496,7 +496,7 @@ typedef struct ar6_softc {
s8 arRssi; s8 arRssi;
u8 arTxPwr; u8 arTxPwr;
bool arTxPwrSet; bool arTxPwrSet;
A_INT32 arBitRate; s32 arBitRate;
struct net_device_stats arNetStats; struct net_device_stats arNetStats;
struct iw_statistics arIwStats; struct iw_statistics arIwStats;
s8 arNumChannels; s8 arNumChannels;
...@@ -509,7 +509,7 @@ typedef struct ar6_softc { ...@@ -509,7 +509,7 @@ typedef struct ar6_softc {
#ifdef CONFIG_HOST_TCMD_SUPPORT #ifdef CONFIG_HOST_TCMD_SUPPORT
u8 tcmdRxReport; u8 tcmdRxReport;
u32 tcmdRxTotalPkt; u32 tcmdRxTotalPkt;
A_INT32 tcmdRxRssi; s32 tcmdRxRssi;
u32 tcmdPm; u32 tcmdPm;
u32 arTargetMode; u32 arTargetMode;
u32 tcmdRxcrcErrPkt; u32 tcmdRxcrcErrPkt;
...@@ -552,7 +552,7 @@ typedef struct ar6_softc { ...@@ -552,7 +552,7 @@ typedef struct ar6_softc {
u32 dbglog_init_done; u32 dbglog_init_done;
u32 arConnectCtrlFlags; u32 arConnectCtrlFlags;
#ifdef USER_KEYS #ifdef USER_KEYS
A_INT32 user_savedkeys_stat; s32 user_savedkeys_stat;
u32 user_key_ctrl; u32 user_key_ctrl;
struct USER_SAVEDKEYS user_saved_keys; struct USER_SAVEDKEYS user_saved_keys;
#endif #endif
...@@ -589,7 +589,7 @@ typedef struct ar6_softc { ...@@ -589,7 +589,7 @@ typedef struct ar6_softc {
#endif #endif
WMI_BTCOEX_CONFIG_EVENT arBtcoexConfig; WMI_BTCOEX_CONFIG_EVENT arBtcoexConfig;
WMI_BTCOEX_STATS_EVENT arBtcoexStats; WMI_BTCOEX_STATS_EVENT arBtcoexStats;
A_INT32 (*exitCallback)(void *config); /* generic callback at AR6K exit */ s32 (*exitCallback)(void *config); /* generic callback at AR6K exit */
HIF_DEVICE_OS_DEVICE_INFO osDevInfo; HIF_DEVICE_OS_DEVICE_INFO osDevInfo;
#ifdef ATH6K_CONFIG_CFG80211 #ifdef ATH6K_CONFIG_CFG80211
struct wireless_dev *wdev; struct wireless_dev *wdev;
......
...@@ -42,7 +42,7 @@ void ar6000_disconnect_event(struct ar6_softc *ar, u8 reason, ...@@ -42,7 +42,7 @@ void ar6000_disconnect_event(struct ar6_softc *ar, u8 reason,
u8 *assocInfo, u16 protocolReasonStatus); u8 *assocInfo, u16 protocolReasonStatus);
void ar6000_tkip_micerr_event(struct ar6_softc *ar, u8 keyid, void ar6000_tkip_micerr_event(struct ar6_softc *ar, u8 keyid,
bool ismcast); bool ismcast);
void ar6000_bitrate_rx(void *devt, A_INT32 rateKbps); void ar6000_bitrate_rx(void *devt, s32 rateKbps);
void ar6000_channelList_rx(void *devt, s8 numChan, u16 *chanList); void ar6000_channelList_rx(void *devt, s8 numChan, u16 *chanList);
void ar6000_regDomain_event(struct ar6_softc *ar, u32 regCode); void ar6000_regDomain_event(struct ar6_softc *ar, u32 regCode);
void ar6000_txPwr_rx(void *devt, u8 txPwr); void ar6000_txPwr_rx(void *devt, u8 txPwr);
...@@ -77,7 +77,7 @@ void ar6000_gpio_intr_rx(u32 intr_mask, u32 input_values); ...@@ -77,7 +77,7 @@ void ar6000_gpio_intr_rx(u32 intr_mask, u32 input_values);
void ar6000_gpio_data_rx(u32 reg_id, u32 value); void ar6000_gpio_data_rx(u32 reg_id, u32 value);
void ar6000_gpio_ack_rx(void); void ar6000_gpio_ack_rx(void);
A_INT32 rssi_compensation_calc_tcmd(u32 freq, A_INT32 rssi, u32 totalPkt); s32 rssi_compensation_calc_tcmd(u32 freq, s32 rssi, u32 totalPkt);
s16 rssi_compensation_calc(struct ar6_softc *ar, s16 rssi); s16 rssi_compensation_calc(struct ar6_softc *ar, s16 rssi);
s16 rssi_compensation_reverse_calc(struct ar6_softc *ar, s16 rssi, bool Above); s16 rssi_compensation_reverse_calc(struct ar6_softc *ar, s16 rssi, bool Above);
......
...@@ -1061,8 +1061,8 @@ typedef struct targetStats_t { ...@@ -1061,8 +1061,8 @@ typedef struct targetStats_t {
u64 cs_connect_cnt; u64 cs_connect_cnt;
u64 cs_disconnect_cnt; u64 cs_disconnect_cnt;
A_INT32 tx_unicast_rate; s32 tx_unicast_rate;
A_INT32 rx_unicast_rate; s32 rx_unicast_rate;
u32 lq_val; u32 lq_val;
......
...@@ -307,16 +307,16 @@ void *a_netbuf_alloc_raw(int size); ...@@ -307,16 +307,16 @@ void *a_netbuf_alloc_raw(int size);
void a_netbuf_free(void *bufPtr); void a_netbuf_free(void *bufPtr);
void *a_netbuf_to_data(void *bufPtr); void *a_netbuf_to_data(void *bufPtr);
u32 a_netbuf_to_len(void *bufPtr); u32 a_netbuf_to_len(void *bufPtr);
int a_netbuf_push(void *bufPtr, A_INT32 len); int a_netbuf_push(void *bufPtr, s32 len);
int a_netbuf_push_data(void *bufPtr, char *srcPtr, A_INT32 len); int a_netbuf_push_data(void *bufPtr, char *srcPtr, s32 len);
int a_netbuf_put(void *bufPtr, A_INT32 len); int a_netbuf_put(void *bufPtr, s32 len);
int a_netbuf_put_data(void *bufPtr, char *srcPtr, A_INT32 len); int a_netbuf_put_data(void *bufPtr, char *srcPtr, s32 len);
int a_netbuf_pull(void *bufPtr, A_INT32 len); int a_netbuf_pull(void *bufPtr, s32 len);
int a_netbuf_pull_data(void *bufPtr, char *dstPtr, A_INT32 len); int a_netbuf_pull_data(void *bufPtr, char *dstPtr, s32 len);
int a_netbuf_trim(void *bufPtr, A_INT32 len); int a_netbuf_trim(void *bufPtr, s32 len);
int a_netbuf_trim_data(void *bufPtr, char *dstPtr, A_INT32 len); int a_netbuf_trim_data(void *bufPtr, char *dstPtr, s32 len);
int a_netbuf_setlen(void *bufPtr, A_INT32 len); int a_netbuf_setlen(void *bufPtr, s32 len);
A_INT32 a_netbuf_headroom(void *bufPtr); s32 a_netbuf_headroom(void *bufPtr);
void a_netbuf_enqueue(A_NETBUF_QUEUE_T *q, void *pkt); void a_netbuf_enqueue(A_NETBUF_QUEUE_T *q, void *pkt);
void a_netbuf_prequeue(A_NETBUF_QUEUE_T *q, void *pkt); void a_netbuf_prequeue(A_NETBUF_QUEUE_T *q, void *pkt);
void *a_netbuf_dequeue(A_NETBUF_QUEUE_T *q); void *a_netbuf_dequeue(A_NETBUF_QUEUE_T *q);
......
...@@ -417,7 +417,7 @@ ar6000_ioctl_set_rssi_threshold(struct net_device *dev, struct ifreq *rq) ...@@ -417,7 +417,7 @@ ar6000_ioctl_set_rssi_threshold(struct net_device *dev, struct ifreq *rq)
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev); AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
WMI_RSSI_THRESHOLD_PARAMS_CMD cmd; WMI_RSSI_THRESHOLD_PARAMS_CMD cmd;
USER_RSSI_PARAMS rssiParams; USER_RSSI_PARAMS rssiParams;
A_INT32 i, j; s32 i, j;
int ret = 0; int ret = 0;
if (ar->arWmiReady == false) { if (ar->arWmiReady == false) {
......
...@@ -105,7 +105,7 @@ a_netbuf_to_data(void *bufPtr) ...@@ -105,7 +105,7 @@ a_netbuf_to_data(void *bufPtr)
* pointed to by bufPtr * pointed to by bufPtr
*/ */
int int
a_netbuf_push(void *bufPtr, A_INT32 len) a_netbuf_push(void *bufPtr, s32 len)
{ {
skb_push((struct sk_buff *)bufPtr, len); skb_push((struct sk_buff *)bufPtr, len);
...@@ -117,7 +117,7 @@ a_netbuf_push(void *bufPtr, A_INT32 len) ...@@ -117,7 +117,7 @@ a_netbuf_push(void *bufPtr, A_INT32 len)
* pointed to by bufPtr and also fill with data * pointed to by bufPtr and also fill with data
*/ */
int int
a_netbuf_push_data(void *bufPtr, char *srcPtr, A_INT32 len) a_netbuf_push_data(void *bufPtr, char *srcPtr, s32 len)
{ {
skb_push((struct sk_buff *) bufPtr, len); skb_push((struct sk_buff *) bufPtr, len);
A_MEMCPY(((struct sk_buff *)bufPtr)->data, srcPtr, len); A_MEMCPY(((struct sk_buff *)bufPtr)->data, srcPtr, len);
...@@ -130,7 +130,7 @@ a_netbuf_push_data(void *bufPtr, char *srcPtr, A_INT32 len) ...@@ -130,7 +130,7 @@ a_netbuf_push_data(void *bufPtr, char *srcPtr, A_INT32 len)
* pointed to by bufPtr * pointed to by bufPtr
*/ */
int int
a_netbuf_put(void *bufPtr, A_INT32 len) a_netbuf_put(void *bufPtr, s32 len)
{ {
skb_put((struct sk_buff *)bufPtr, len); skb_put((struct sk_buff *)bufPtr, len);
...@@ -142,7 +142,7 @@ a_netbuf_put(void *bufPtr, A_INT32 len) ...@@ -142,7 +142,7 @@ a_netbuf_put(void *bufPtr, A_INT32 len)
* pointed to by bufPtr and also fill with data * pointed to by bufPtr and also fill with data
*/ */
int int
a_netbuf_put_data(void *bufPtr, char *srcPtr, A_INT32 len) a_netbuf_put_data(void *bufPtr, char *srcPtr, s32 len)
{ {
char *start = (char*)(((struct sk_buff *)bufPtr)->data + char *start = (char*)(((struct sk_buff *)bufPtr)->data +
((struct sk_buff *)bufPtr)->len); ((struct sk_buff *)bufPtr)->len);
...@@ -157,7 +157,7 @@ a_netbuf_put_data(void *bufPtr, char *srcPtr, A_INT32 len) ...@@ -157,7 +157,7 @@ a_netbuf_put_data(void *bufPtr, char *srcPtr, A_INT32 len)
* Trim the network buffer pointed to by bufPtr to len # of bytes * Trim the network buffer pointed to by bufPtr to len # of bytes
*/ */
int int
a_netbuf_setlen(void *bufPtr, A_INT32 len) a_netbuf_setlen(void *bufPtr, s32 len)
{ {
skb_trim((struct sk_buff *)bufPtr, len); skb_trim((struct sk_buff *)bufPtr, len);
...@@ -168,7 +168,7 @@ a_netbuf_setlen(void *bufPtr, A_INT32 len) ...@@ -168,7 +168,7 @@ a_netbuf_setlen(void *bufPtr, A_INT32 len)
* Chop of len # of bytes from the end of the buffer. * Chop of len # of bytes from the end of the buffer.
*/ */
int int
a_netbuf_trim(void *bufPtr, A_INT32 len) a_netbuf_trim(void *bufPtr, s32 len)
{ {
skb_trim((struct sk_buff *)bufPtr, ((struct sk_buff *)bufPtr)->len - len); skb_trim((struct sk_buff *)bufPtr, ((struct sk_buff *)bufPtr)->len - len);
...@@ -179,7 +179,7 @@ a_netbuf_trim(void *bufPtr, A_INT32 len) ...@@ -179,7 +179,7 @@ a_netbuf_trim(void *bufPtr, A_INT32 len)
* Chop of len # of bytes from the end of the buffer and return the data. * Chop of len # of bytes from the end of the buffer and return the data.
*/ */
int int
a_netbuf_trim_data(void *bufPtr, char *dstPtr, A_INT32 len) a_netbuf_trim_data(void *bufPtr, char *dstPtr, s32 len)
{ {
char *start = (char*)(((struct sk_buff *)bufPtr)->data + char *start = (char*)(((struct sk_buff *)bufPtr)->data +
(((struct sk_buff *)bufPtr)->len - len)); (((struct sk_buff *)bufPtr)->len - len));
...@@ -194,8 +194,7 @@ a_netbuf_trim_data(void *bufPtr, char *dstPtr, A_INT32 len) ...@@ -194,8 +194,7 @@ a_netbuf_trim_data(void *bufPtr, char *dstPtr, A_INT32 len)
/* /*
* Returns the number of bytes available to a a_netbuf_push() * Returns the number of bytes available to a a_netbuf_push()
*/ */
A_INT32 s32 a_netbuf_headroom(void *bufPtr)
a_netbuf_headroom(void *bufPtr)
{ {
return (skb_headroom((struct sk_buff *)bufPtr)); return (skb_headroom((struct sk_buff *)bufPtr));
} }
...@@ -204,7 +203,7 @@ a_netbuf_headroom(void *bufPtr) ...@@ -204,7 +203,7 @@ a_netbuf_headroom(void *bufPtr)
* Removes specified number of bytes from the beginning of the buffer * Removes specified number of bytes from the beginning of the buffer
*/ */
int int
a_netbuf_pull(void *bufPtr, A_INT32 len) a_netbuf_pull(void *bufPtr, s32 len)
{ {
skb_pull((struct sk_buff *)bufPtr, len); skb_pull((struct sk_buff *)bufPtr, len);
...@@ -216,7 +215,7 @@ a_netbuf_pull(void *bufPtr, A_INT32 len) ...@@ -216,7 +215,7 @@ a_netbuf_pull(void *bufPtr, A_INT32 len)
* and return the data * and return the data
*/ */
int int
a_netbuf_pull_data(void *bufPtr, char *dstPtr, A_INT32 len) a_netbuf_pull_data(void *bufPtr, char *dstPtr, s32 len)
{ {
A_MEMCPY(dstPtr, ((struct sk_buff *)bufPtr)->data, len); A_MEMCPY(dstPtr, ((struct sk_buff *)bufPtr)->data, len);
skb_pull((struct sk_buff *)bufPtr, len); skb_pull((struct sk_buff *)bufPtr, len);
......
...@@ -97,7 +97,7 @@ ar6000_scan_node(void *arg, bss_t *ni) ...@@ -97,7 +97,7 @@ ar6000_scan_node(void *arg, bss_t *ni)
char *end_buf; char *end_buf;
struct ieee80211_common_ie *cie; struct ieee80211_common_ie *cie;
char *current_val; char *current_val;
A_INT32 j; s32 j;
u32 rate_len, data_len = 0; u32 rate_len, data_len = 0;
param = (struct ar_giwscan_param *)arg; param = (struct ar_giwscan_param *)arg;
...@@ -1007,7 +1007,7 @@ ar6000_ioctl_siwencode(struct net_device *dev, ...@@ -1007,7 +1007,7 @@ ar6000_ioctl_siwencode(struct net_device *dev,
{ {
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev); AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
int index; int index;
A_INT32 auth = 0; s32 auth = 0;
if (is_iwioctl_allowed(ar->arNextMode, info->cmd) != A_OK) { if (is_iwioctl_allowed(ar->arNextMode, info->cmd) != A_OK) {
A_PRINTF("wext_ioctl: cmd=0x%x not allowed in this mode\n", info->cmd); A_PRINTF("wext_ioctl: cmd=0x%x not allowed in this mode\n", info->cmd);
...@@ -1250,8 +1250,8 @@ ar6000_ioctl_siwauth(struct net_device *dev, ...@@ -1250,8 +1250,8 @@ ar6000_ioctl_siwauth(struct net_device *dev,
bool profChanged; bool profChanged;
u16 param; u16 param;
A_INT32 ret; s32 ret;
A_INT32 value; s32 value;
if (ar->arWmiReady == false) { if (ar->arWmiReady == false) {
return -EIO; return -EIO;
...@@ -1419,7 +1419,7 @@ ar6000_ioctl_giwauth(struct net_device *dev, ...@@ -1419,7 +1419,7 @@ ar6000_ioctl_giwauth(struct net_device *dev,
{ {
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev); AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
u16 param; u16 param;
A_INT32 ret; s32 ret;
if (ar->arWmiReady == false) { if (ar->arWmiReady == false) {
return -EIO; return -EIO;
...@@ -1546,7 +1546,7 @@ ar6000_ioctl_siwpmksa(struct net_device *dev, ...@@ -1546,7 +1546,7 @@ ar6000_ioctl_siwpmksa(struct net_device *dev,
struct iw_point *data, char *extra) struct iw_point *data, char *extra)
{ {
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev); AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
A_INT32 ret; s32 ret;
int status; int status;
struct iw_pmksa *pmksa; struct iw_pmksa *pmksa;
...@@ -1593,11 +1593,11 @@ static int ar6000_set_wapi_key(struct net_device *dev, ...@@ -1593,11 +1593,11 @@ static int ar6000_set_wapi_key(struct net_device *dev,
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev); AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
struct iw_encode_ext *ext = (struct iw_encode_ext *)extra; struct iw_encode_ext *ext = (struct iw_encode_ext *)extra;
KEY_USAGE keyUsage = 0; KEY_USAGE keyUsage = 0;
A_INT32 keyLen; s32 keyLen;
u8 *keyData; u8 *keyData;
A_INT32 index; s32 index;
u32 *PN; u32 *PN;
A_INT32 i; s32 i;
int status; int status;
u8 wapiKeyRsc[16]; u8 wapiKeyRsc[16];
CRYPTO_TYPE keyType = WAPI_CRYPT; CRYPTO_TYPE keyType = WAPI_CRYPT;
...@@ -1653,10 +1653,10 @@ ar6000_ioctl_siwencodeext(struct net_device *dev, ...@@ -1653,10 +1653,10 @@ ar6000_ioctl_siwencodeext(struct net_device *dev,
struct iw_point *erq, char *extra) struct iw_point *erq, char *extra)
{ {
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev); AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
A_INT32 index; s32 index;
struct iw_encode_ext *ext; struct iw_encode_ext *ext;
KEY_USAGE keyUsage; KEY_USAGE keyUsage;
A_INT32 keyLen; s32 keyLen;
u8 *keyData; u8 *keyData;
u8 keyRsc[8]; u8 keyRsc[8];
int status; int status;
......
...@@ -153,7 +153,7 @@ static int ...@@ -153,7 +153,7 @@ static int
wmi_lqThresholdEvent_rx(struct wmi_t *wmip, u8 *datap, int len); wmi_lqThresholdEvent_rx(struct wmi_t *wmip, u8 *datap, int len);
static bool static bool
wmi_is_bitrate_index_valid(struct wmi_t *wmip, A_INT32 rateIndex); wmi_is_bitrate_index_valid(struct wmi_t *wmip, s32 rateIndex);
static int static int
wmi_aplistEvent_rx(struct wmi_t *wmip, u8 *datap, int len); wmi_aplistEvent_rx(struct wmi_t *wmip, u8 *datap, int len);
...@@ -212,7 +212,7 @@ extern unsigned int processDot11Hdr; ...@@ -212,7 +212,7 @@ extern unsigned int processDot11Hdr;
#endif #endif
int wps_enable; int wps_enable;
static const A_INT32 wmi_rateTable[][2] = { static const s32 wmi_rateTable[][2] = {
//{W/O SGI, with SGI} //{W/O SGI, with SGI}
{1000, 1000}, {1000, 1000},
{2000, 2000}, {2000, 2000},
...@@ -244,20 +244,20 @@ static const A_INT32 wmi_rateTable[][2] = { ...@@ -244,20 +244,20 @@ static const A_INT32 wmi_rateTable[][2] = {
{135000, 150000}, {135000, 150000},
{0, 0}}; {0, 0}};
#define MODE_A_SUPPORT_RATE_START ((A_INT32) 4) #define MODE_A_SUPPORT_RATE_START ((s32) 4)
#define MODE_A_SUPPORT_RATE_STOP ((A_INT32) 11) #define MODE_A_SUPPORT_RATE_STOP ((s32) 11)
#define MODE_GONLY_SUPPORT_RATE_START MODE_A_SUPPORT_RATE_START #define MODE_GONLY_SUPPORT_RATE_START MODE_A_SUPPORT_RATE_START
#define MODE_GONLY_SUPPORT_RATE_STOP MODE_A_SUPPORT_RATE_STOP #define MODE_GONLY_SUPPORT_RATE_STOP MODE_A_SUPPORT_RATE_STOP
#define MODE_B_SUPPORT_RATE_START ((A_INT32) 0) #define MODE_B_SUPPORT_RATE_START ((s32) 0)
#define MODE_B_SUPPORT_RATE_STOP ((A_INT32) 3) #define MODE_B_SUPPORT_RATE_STOP ((s32) 3)
#define MODE_G_SUPPORT_RATE_START ((A_INT32) 0) #define MODE_G_SUPPORT_RATE_START ((s32) 0)
#define MODE_G_SUPPORT_RATE_STOP ((A_INT32) 11) #define MODE_G_SUPPORT_RATE_STOP ((s32) 11)
#define MODE_GHT20_SUPPORT_RATE_START ((A_INT32) 0) #define MODE_GHT20_SUPPORT_RATE_START ((s32) 0)
#define MODE_GHT20_SUPPORT_RATE_STOP ((A_INT32) 19) #define MODE_GHT20_SUPPORT_RATE_STOP ((s32) 19)
#define MAX_NUMBER_OF_SUPPORT_RATES (MODE_GHT20_SUPPORT_RATE_STOP + 1) #define MAX_NUMBER_OF_SUPPORT_RATES (MODE_GHT20_SUPPORT_RATE_STOP + 1)
...@@ -1657,7 +1657,7 @@ static int ...@@ -1657,7 +1657,7 @@ static int
wmi_bitrate_reply_rx(struct wmi_t *wmip, u8 *datap, int len) wmi_bitrate_reply_rx(struct wmi_t *wmip, u8 *datap, int len)
{ {
WMI_BIT_RATE_REPLY *reply; WMI_BIT_RATE_REPLY *reply;
A_INT32 rate; s32 rate;
u32 sgi,index; u32 sgi,index;
/* 54149: /* 54149:
* WMI_BIT_RATE_CMD structure is changed to WMI_BIT_RATE_REPLY. * WMI_BIT_RATE_CMD structure is changed to WMI_BIT_RATE_REPLY.
...@@ -3201,8 +3201,8 @@ wmi_create_pstream_cmd(struct wmi_t *wmip, WMI_CREATE_PSTREAM_CMD *params) ...@@ -3201,8 +3201,8 @@ wmi_create_pstream_cmd(struct wmi_t *wmip, WMI_CREATE_PSTREAM_CMD *params)
void *osbuf; void *osbuf;
WMI_CREATE_PSTREAM_CMD *cmd; WMI_CREATE_PSTREAM_CMD *cmd;
u8 fatPipeExistsForAC=0; u8 fatPipeExistsForAC=0;
A_INT32 minimalPHY = 0; s32 minimalPHY = 0;
A_INT32 nominalPHY = 0; s32 nominalPHY = 0;
/* Validate all the parameters. */ /* Validate all the parameters. */
if( !((params->userPriority < 8) && if( !((params->userPriority < 8) &&
...@@ -3395,7 +3395,7 @@ wmi_set_framerate_cmd(struct wmi_t *wmip, u8 bEnable, u8 type, u8 subType, u16 r ...@@ -3395,7 +3395,7 @@ wmi_set_framerate_cmd(struct wmi_t *wmip, u8 bEnable, u8 type, u8 subType, u16 r
* then auto selection is used. * then auto selection is used.
*/ */
int int
wmi_set_bitrate_cmd(struct wmi_t *wmip, A_INT32 dataRate, A_INT32 mgmtRate, A_INT32 ctlRate) wmi_set_bitrate_cmd(struct wmi_t *wmip, s32 dataRate, s32 mgmtRate, s32 ctlRate)
{ {
void *osbuf; void *osbuf;
WMI_BIT_RATE_CMD *cmd; WMI_BIT_RATE_CMD *cmd;
...@@ -3454,7 +3454,7 @@ wmi_get_bitrate_cmd(struct wmi_t *wmip) ...@@ -3454,7 +3454,7 @@ wmi_get_bitrate_cmd(struct wmi_t *wmip)
* Returns true iff the given rate index is legal in the current PHY mode. * Returns true iff the given rate index is legal in the current PHY mode.
*/ */
bool bool
wmi_is_bitrate_index_valid(struct wmi_t *wmip, A_INT32 rateIndex) wmi_is_bitrate_index_valid(struct wmi_t *wmip, s32 rateIndex)
{ {
WMI_PHY_MODE phyMode = (WMI_PHY_MODE) wmip->wmi_phyMode; WMI_PHY_MODE phyMode = (WMI_PHY_MODE) wmip->wmi_phyMode;
bool isValid = true; bool isValid = true;
...@@ -3509,7 +3509,7 @@ wmi_is_bitrate_index_valid(struct wmi_t *wmip, A_INT32 rateIndex) ...@@ -3509,7 +3509,7 @@ wmi_is_bitrate_index_valid(struct wmi_t *wmip, A_INT32 rateIndex)
return isValid; return isValid;
} }
s8 wmi_validate_bitrate(struct wmi_t *wmip, A_INT32 rate, s8 *rate_idx) s8 wmi_validate_bitrate(struct wmi_t *wmip, s32 rate, s8 *rate_idx)
{ {
s8 i; s8 i;
...@@ -3523,7 +3523,7 @@ s8 wmi_validate_bitrate(struct wmi_t *wmip, A_INT32 rate, s8 *rate_idx) ...@@ -3523,7 +3523,7 @@ s8 wmi_validate_bitrate(struct wmi_t *wmip, A_INT32 rate, s8 *rate_idx)
} }
} }
if(wmi_is_bitrate_index_valid(wmip, (A_INT32) i) != true) { if(wmi_is_bitrate_index_valid(wmip, (s32) i) != true) {
return A_EINVAL; return A_EINVAL;
} }
...@@ -3537,7 +3537,7 @@ wmi_set_fixrates_cmd(struct wmi_t *wmip, u32 fixRatesMask) ...@@ -3537,7 +3537,7 @@ wmi_set_fixrates_cmd(struct wmi_t *wmip, u32 fixRatesMask)
void *osbuf; void *osbuf;
WMI_FIX_RATES_CMD *cmd; WMI_FIX_RATES_CMD *cmd;
#if 0 #if 0
A_INT32 rateIndex; s32 rateIndex;
/* This check does not work for AR6003 as the HT modes are enabled only when /* This check does not work for AR6003 as the HT modes are enabled only when
* the STA is connected to a HT_BSS and is not based only on channel. It is * the STA is connected to a HT_BSS and is not based only on channel. It is
* safe to skip this check however because rate control will only use rates * safe to skip this check however because rate control will only use rates
...@@ -5349,8 +5349,7 @@ wmi_set_halparam_cmd(struct wmi_t *wmip, u8 *cmd, u16 dataLen) ...@@ -5349,8 +5349,7 @@ wmi_set_halparam_cmd(struct wmi_t *wmip, u8 *cmd, u16 dataLen)
return (wmi_cmd_send(wmip, osbuf, WMI_SET_WHALPARAM_CMDID, NO_SYNC_WMIFLAG)); return (wmi_cmd_send(wmip, osbuf, WMI_SET_WHALPARAM_CMDID, NO_SYNC_WMIFLAG));
} }
A_INT32 s32 wmi_get_rate(s8 rateindex)
wmi_get_rate(s8 rateindex)
{ {
if (rateindex == RATE_AUTO) { if (rateindex == RATE_AUTO) {
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment