aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-02-02 17:05:53 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-02 17:34:50 -0500
commitf2ab1275cb1cfd033868cf0b7c67d1143199630e (patch)
tree763818bf53b4d37851a3c2dc9d30720905210110
parentc353f4b397982e210b890c1f1a246611ba222b92 (diff)
staging: ath6kl: Convert A_INT8 to s8
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/ath6kl/include/common/wmi.h32
-rw-r--r--drivers/staging/ath6kl/include/wmi_api.h8
-rw-r--r--drivers/staging/ath6kl/os/linux/ar6000_drv.c14
-rw-r--r--drivers/staging/ath6kl/os/linux/include/ar6000_drv.h6
-rw-r--r--drivers/staging/ath6kl/os/linux/include/ar6xapi_linux.h4
-rw-r--r--drivers/staging/ath6kl/os/linux/ioctl.c4
-rw-r--r--drivers/staging/ath6kl/os/linux/wireless_ext.c6
-rw-r--r--drivers/staging/ath6kl/wmi/wmi.c39
8 files changed, 56 insertions, 57 deletions
diff --git a/drivers/staging/ath6kl/include/common/wmi.h b/drivers/staging/ath6kl/include/common/wmi.h
index 1f90975aac6..2fb03bea403 100644
--- a/drivers/staging/ath6kl/include/common/wmi.h
+++ b/drivers/staging/ath6kl/include/common/wmi.h
@@ -160,7 +160,7 @@ typedef enum {
160#define WMI_DATA_HDR_SET_META(h, _v) ((h)->info2 = ((h)->info2 & ~(WMI_DATA_HDR_META_MASK << WMI_DATA_HDR_META_SHIFT)) | ((_v) << WMI_DATA_HDR_META_SHIFT)) 160#define WMI_DATA_HDR_SET_META(h, _v) ((h)->info2 = ((h)->info2 & ~(WMI_DATA_HDR_META_MASK << WMI_DATA_HDR_META_SHIFT)) | ((_v) << WMI_DATA_HDR_META_SHIFT))
161 161
162typedef PREPACK struct { 162typedef PREPACK struct {
163 A_INT8 rssi; 163 s8 rssi;
164 u8 info; /* usage of 'info' field(8-bit): 164 u8 info; /* usage of 'info' field(8-bit):
165 * b1:b0 - WMI_MSG_TYPE 165 * b1:b0 - WMI_MSG_TYPE
166 * b4:b3:b2 - UP(tid) 166 * b4:b3:b2 - UP(tid)
@@ -776,7 +776,7 @@ typedef PREPACK struct {
776} POSTPACK WMI_POWER_MODE_CMD; 776} POSTPACK WMI_POWER_MODE_CMD;
777 777
778typedef PREPACK struct { 778typedef PREPACK struct {
779 A_INT8 status; /* WMI_SET_PARAMS_REPLY */ 779 s8 status; /* WMI_SET_PARAMS_REPLY */
780} POSTPACK WMI_SET_PARAMS_REPLY; 780} POSTPACK WMI_SET_PARAMS_REPLY;
781 781
782typedef PREPACK struct { 782typedef PREPACK struct {
@@ -1199,7 +1199,7 @@ typedef enum {
1199 1199
1200typedef PREPACK struct { 1200typedef PREPACK struct {
1201 u8 bssid[ATH_MAC_LEN]; 1201 u8 bssid[ATH_MAC_LEN];
1202 A_INT8 bias; 1202 s8 bias;
1203} POSTPACK WMI_BSS_BIAS; 1203} POSTPACK WMI_BSS_BIAS;
1204 1204
1205typedef PREPACK struct { 1205typedef PREPACK struct {
@@ -2139,7 +2139,7 @@ typedef PREPACK struct {
2139} POSTPACK WMI_NEIGHBOR_INFO; 2139} POSTPACK WMI_NEIGHBOR_INFO;
2140 2140
2141typedef PREPACK struct { 2141typedef PREPACK struct {
2142 A_INT8 numberOfAps; 2142 s8 numberOfAps;
2143 WMI_NEIGHBOR_INFO neighbor[1]; 2143 WMI_NEIGHBOR_INFO neighbor[1];
2144} POSTPACK WMI_NEIGHBOR_REPORT_EVENT; 2144} POSTPACK WMI_NEIGHBOR_REPORT_EVENT;
2145 2145
@@ -2207,7 +2207,7 @@ typedef PREPACK struct {
2207typedef PREPACK struct { 2207typedef PREPACK struct {
2208 u16 channel; 2208 u16 channel;
2209 u8 frameType; /* see WMI_OPT_FTYPE */ 2209 u8 frameType; /* see WMI_OPT_FTYPE */
2210 A_INT8 snr; 2210 s8 snr;
2211 u8 srcAddr[ATH_MAC_LEN]; 2211 u8 srcAddr[ATH_MAC_LEN];
2212 u8 bssid[ATH_MAC_LEN]; 2212 u8 bssid[ATH_MAC_LEN];
2213} POSTPACK WMI_OPT_RX_INFO_HDR; 2213} POSTPACK WMI_OPT_RX_INFO_HDR;
@@ -2399,11 +2399,11 @@ typedef PREPACK struct {
2399typedef PREPACK struct { 2399typedef PREPACK struct {
2400 A_INT32 roam_util; 2400 A_INT32 roam_util;
2401 u8 bssid[ATH_MAC_LEN]; 2401 u8 bssid[ATH_MAC_LEN];
2402 A_INT8 rssi; 2402 s8 rssi;
2403 A_INT8 rssidt; 2403 s8 rssidt;
2404 A_INT8 last_rssi; 2404 s8 last_rssi;
2405 A_INT8 util; 2405 s8 util;
2406 A_INT8 bias; 2406 s8 bias;
2407 u8 reserved; /* For alignment */ 2407 u8 reserved; /* For alignment */
2408} POSTPACK WMI_BSS_ROAM_INFO; 2408} POSTPACK WMI_BSS_ROAM_INFO;
2409 2409
@@ -2506,14 +2506,14 @@ typedef enum {
2506} WMI_BIT_RATE; 2506} WMI_BIT_RATE;
2507 2507
2508typedef PREPACK struct { 2508typedef PREPACK struct {
2509 A_INT8 rateIndex; /* see WMI_BIT_RATE */ 2509 s8 rateIndex; /* see WMI_BIT_RATE */
2510 A_INT8 mgmtRateIndex; 2510 s8 mgmtRateIndex;
2511 A_INT8 ctlRateIndex; 2511 s8 ctlRateIndex;
2512} POSTPACK WMI_BIT_RATE_CMD; 2512} POSTPACK WMI_BIT_RATE_CMD;
2513 2513
2514 2514
2515typedef PREPACK struct { 2515typedef PREPACK struct {
2516 A_INT8 rateIndex; /* see WMI_BIT_RATE */ 2516 s8 rateIndex; /* see WMI_BIT_RATE */
2517} POSTPACK WMI_BIT_RATE_REPLY; 2517} POSTPACK WMI_BIT_RATE_REPLY;
2518 2518
2519 2519
@@ -2599,9 +2599,9 @@ typedef PREPACK struct {
2599 u32 assoc_time; 2599 u32 assoc_time;
2600 u32 allow_txrx_time; 2600 u32 allow_txrx_time;
2601 u8 disassoc_bssid[ATH_MAC_LEN]; 2601 u8 disassoc_bssid[ATH_MAC_LEN];
2602 A_INT8 disassoc_bss_rssi; 2602 s8 disassoc_bss_rssi;
2603 u8 assoc_bssid[ATH_MAC_LEN]; 2603 u8 assoc_bssid[ATH_MAC_LEN];
2604 A_INT8 assoc_bss_rssi; 2604 s8 assoc_bss_rssi;
2605} POSTPACK WMI_TARGET_ROAM_TIME; 2605} POSTPACK WMI_TARGET_ROAM_TIME;
2606 2606
2607typedef PREPACK struct { 2607typedef PREPACK struct {
diff --git a/drivers/staging/ath6kl/include/wmi_api.h b/drivers/staging/ath6kl/include/wmi_api.h
index 04f809c3051..b34c1f9c667 100644
--- a/drivers/staging/ath6kl/include/wmi_api.h
+++ b/drivers/staging/ath6kl/include/wmi_api.h
@@ -124,7 +124,7 @@ int wmi_getrev_cmd(struct wmi_t *wmip);
124int wmi_startscan_cmd(struct wmi_t *wmip, WMI_SCAN_TYPE scanType, 124int wmi_startscan_cmd(struct wmi_t *wmip, WMI_SCAN_TYPE scanType,
125 u32 forceFgScan, u32 isLegacy, 125 u32 forceFgScan, u32 isLegacy,
126 u32 homeDwellTime, u32 forceScanInterval, 126 u32 homeDwellTime, u32 forceScanInterval,
127 A_INT8 numChan, u16 *channelList); 127 s8 numChan, u16 *channelList);
128int wmi_scanparams_cmd(struct wmi_t *wmip, u16 fg_start_sec, 128int wmi_scanparams_cmd(struct wmi_t *wmip, u16 fg_start_sec,
129 u16 fg_end_sec, u16 bg_sec, 129 u16 fg_end_sec, u16 bg_sec,
130 u16 minact_chdw_msec, 130 u16 minact_chdw_msec,
@@ -155,11 +155,11 @@ int wmi_delete_pstream_cmd(struct wmi_t *wmip, u8 trafficClass, u8 streamID);
155int wmi_set_framerate_cmd(struct wmi_t *wmip, u8 bEnable, u8 type, u8 subType, u16 rateMask); 155int wmi_set_framerate_cmd(struct wmi_t *wmip, u8 bEnable, u8 type, u8 subType, u16 rateMask);
156int wmi_set_bitrate_cmd(struct wmi_t *wmip, A_INT32 dataRate, A_INT32 mgmtRate, A_INT32 ctlRate); 156int wmi_set_bitrate_cmd(struct wmi_t *wmip, A_INT32 dataRate, A_INT32 mgmtRate, A_INT32 ctlRate);
157int wmi_get_bitrate_cmd(struct wmi_t *wmip); 157int wmi_get_bitrate_cmd(struct wmi_t *wmip);
158A_INT8 wmi_validate_bitrate(struct wmi_t *wmip, A_INT32 rate, A_INT8 *rate_idx); 158s8 wmi_validate_bitrate(struct wmi_t *wmip, A_INT32 rate, s8 *rate_idx);
159int wmi_get_regDomain_cmd(struct wmi_t *wmip); 159int wmi_get_regDomain_cmd(struct wmi_t *wmip);
160int wmi_get_channelList_cmd(struct wmi_t *wmip); 160int wmi_get_channelList_cmd(struct wmi_t *wmip);
161int wmi_set_channelParams_cmd(struct wmi_t *wmip, u8 scanParam, 161int wmi_set_channelParams_cmd(struct wmi_t *wmip, u8 scanParam,
162 WMI_PHY_MODE mode, A_INT8 numChan, 162 WMI_PHY_MODE mode, s8 numChan,
163 u16 *channelList); 163 u16 *channelList);
164 164
165int wmi_set_snr_threshold_params(struct wmi_t *wmip, 165int wmi_set_snr_threshold_params(struct wmi_t *wmip,
@@ -295,7 +295,7 @@ int wmi_set_appie_cmd(struct wmi_t *wmip, u8 mgmtFrmType,
295 295
296int wmi_set_halparam_cmd(struct wmi_t *wmip, u8 *cmd, u16 dataLen); 296int wmi_set_halparam_cmd(struct wmi_t *wmip, u8 *cmd, u16 dataLen);
297 297
298A_INT32 wmi_get_rate(A_INT8 rateindex); 298A_INT32 wmi_get_rate(s8 rateindex);
299 299
300int wmi_set_ip_cmd(struct wmi_t *wmip, WMI_SET_IP_CMD *cmd); 300int wmi_set_ip_cmd(struct wmi_t *wmip, WMI_SET_IP_CMD *cmd);
301 301
diff --git a/drivers/staging/ath6kl/os/linux/ar6000_drv.c b/drivers/staging/ath6kl/os/linux/ar6000_drv.c
index 89ff8f483e1..d527cee25d1 100644
--- a/drivers/staging/ath6kl/os/linux/ar6000_drv.c
+++ b/drivers/staging/ath6kl/os/linux/ar6000_drv.c
@@ -451,7 +451,7 @@ ar6000_dbglog_init_done(AR_SOFTC_T *ar)
451 ar->dbglog_init_done = true; 451 ar->dbglog_init_done = true;
452} 452}
453 453
454u32 dbglog_get_debug_fragment(A_INT8 *datap, u32 len, u32 limit) 454u32 dbglog_get_debug_fragment(s8 *datap, u32 len, u32 limit)
455{ 455{
456 A_INT32 *buffer; 456 A_INT32 *buffer;
457 u32 count; 457 u32 count;
@@ -477,7 +477,7 @@ u32 dbglog_get_debug_fragment(A_INT8 *datap, u32 len, u32 limit)
477} 477}
478 478
479void 479void
480dbglog_parse_debug_logs(A_INT8 *datap, u32 len) 480dbglog_parse_debug_logs(s8 *datap, u32 len)
481{ 481{
482 A_INT32 *buffer; 482 A_INT32 *buffer;
483 u32 count; 483 u32 count;
@@ -571,7 +571,7 @@ ar6000_dbglog_get_debug_logs(AR_SOFTC_T *ar)
571 { 571 {
572 break; 572 break;
573 } 573 }
574 ar6000_dbglog_event(ar, dropped, (A_INT8*)&ar->log_buffer[ar->log_cnt], length); 574 ar6000_dbglog_event(ar, dropped, (s8 *)&ar->log_buffer[ar->log_cnt], length);
575 ar->log_cnt += length; 575 ar->log_cnt += length;
576 } else { 576 } else {
577 AR_DEBUG_PRINTF(ATH_DEBUG_DBG_LOG,("Length: %d (Total size: %d)\n", 577 AR_DEBUG_PRINTF(ATH_DEBUG_DBG_LOG,("Length: %d (Total size: %d)\n",
@@ -597,7 +597,7 @@ ar6000_dbglog_get_debug_logs(AR_SOFTC_T *ar)
597 597
598void 598void
599ar6000_dbglog_event(AR_SOFTC_T *ar, u32 dropped, 599ar6000_dbglog_event(AR_SOFTC_T *ar, u32 dropped,
600 A_INT8 *buffer, u32 length) 600 s8 *buffer, u32 length)
601{ 601{
602#ifdef REPORT_DEBUG_LOGS_TO_APP 602#ifdef REPORT_DEBUG_LOGS_TO_APP
603 #define MAX_WIRELESS_EVENT_SIZE 252 603 #define MAX_WIRELESS_EVENT_SIZE 252
@@ -622,7 +622,7 @@ ar6000_dbglog_event(AR_SOFTC_T *ar, u32 dropped,
622 dropped, length)); 622 dropped, length));
623 623
624 /* Interpret the debug logs */ 624 /* Interpret the debug logs */
625 dbglog_parse_debug_logs((A_INT8*)buffer, length); 625 dbglog_parse_debug_logs((s8 *)buffer, length);
626#endif /* REPORT_DEBUG_LOGS_TO_APP */ 626#endif /* REPORT_DEBUG_LOGS_TO_APP */
627} 627}
628 628
@@ -2795,7 +2795,7 @@ ar6000_txPwr_rx(void *devt, u8 txPwr)
2795 2795
2796 2796
2797void 2797void
2798ar6000_channelList_rx(void *devt, A_INT8 numChan, u16 *chanList) 2798ar6000_channelList_rx(void *devt, s8 numChan, u16 *chanList)
2799{ 2799{
2800 AR_SOFTC_T *ar = (AR_SOFTC_T *)devt; 2800 AR_SOFTC_T *ar = (AR_SOFTC_T *)devt;
2801 2801
@@ -4755,7 +4755,7 @@ void
4755ar6000_hci_event_rcv_evt(struct ar6_softc *ar, WMI_HCI_EVENT *cmd) 4755ar6000_hci_event_rcv_evt(struct ar6_softc *ar, WMI_HCI_EVENT *cmd)
4756{ 4756{
4757 void *osbuf = NULL; 4757 void *osbuf = NULL;
4758 A_INT8 i; 4758 s8 i;
4759 u8 size, *buf; 4759 u8 size, *buf;
4760 int ret = A_OK; 4760 int ret = A_OK;
4761 4761
diff --git a/drivers/staging/ath6kl/os/linux/include/ar6000_drv.h b/drivers/staging/ath6kl/os/linux/include/ar6000_drv.h
index c966f495ba5..bef88eb75e0 100644
--- a/drivers/staging/ath6kl/os/linux/include/ar6000_drv.h
+++ b/drivers/staging/ath6kl/os/linux/include/ar6000_drv.h
@@ -493,18 +493,18 @@ typedef struct ar6_softc {
493 u16 arListenIntervalT; 493 u16 arListenIntervalT;
494 struct ar6000_version arVersion; 494 struct ar6000_version arVersion;
495 u32 arTargetType; 495 u32 arTargetType;
496 A_INT8 arRssi; 496 s8 arRssi;
497 u8 arTxPwr; 497 u8 arTxPwr;
498 bool arTxPwrSet; 498 bool arTxPwrSet;
499 A_INT32 arBitRate; 499 A_INT32 arBitRate;
500 struct net_device_stats arNetStats; 500 struct net_device_stats arNetStats;
501 struct iw_statistics arIwStats; 501 struct iw_statistics arIwStats;
502 A_INT8 arNumChannels; 502 s8 arNumChannels;
503 u16 arChannelList[32]; 503 u16 arChannelList[32];
504 u32 arRegCode; 504 u32 arRegCode;
505 bool statsUpdatePending; 505 bool statsUpdatePending;
506 TARGET_STATS arTargetStats; 506 TARGET_STATS arTargetStats;
507 A_INT8 arMaxRetries; 507 s8 arMaxRetries;
508 u8 arPhyCapability; 508 u8 arPhyCapability;
509#ifdef CONFIG_HOST_TCMD_SUPPORT 509#ifdef CONFIG_HOST_TCMD_SUPPORT
510 u8 tcmdRxReport; 510 u8 tcmdRxReport;
diff --git a/drivers/staging/ath6kl/os/linux/include/ar6xapi_linux.h b/drivers/staging/ath6kl/os/linux/include/ar6xapi_linux.h
index d21ca879bff..bd62141b89e 100644
--- a/drivers/staging/ath6kl/os/linux/include/ar6xapi_linux.h
+++ b/drivers/staging/ath6kl/os/linux/include/ar6xapi_linux.h
@@ -43,7 +43,7 @@ void ar6000_disconnect_event(struct ar6_softc *ar, u8 reason,
43void ar6000_tkip_micerr_event(struct ar6_softc *ar, u8 keyid, 43void ar6000_tkip_micerr_event(struct ar6_softc *ar, u8 keyid,
44 bool ismcast); 44 bool ismcast);
45void ar6000_bitrate_rx(void *devt, A_INT32 rateKbps); 45void ar6000_bitrate_rx(void *devt, A_INT32 rateKbps);
46void ar6000_channelList_rx(void *devt, A_INT8 numChan, u16 *chanList); 46void ar6000_channelList_rx(void *devt, s8 numChan, u16 *chanList);
47void ar6000_regDomain_event(struct ar6_softc *ar, u32 regCode); 47void ar6000_regDomain_event(struct ar6_softc *ar, u32 regCode);
48void ar6000_txPwr_rx(void *devt, u8 txPwr); 48void ar6000_txPwr_rx(void *devt, u8 txPwr);
49void ar6000_keepalive_rx(void *devt, u8 configured); 49void ar6000_keepalive_rx(void *devt, u8 configured);
@@ -109,7 +109,7 @@ int ar6000_get_driver_cfg(struct net_device *dev,
109void ar6000_bssInfo_event_rx(struct ar6_softc *ar, u8 *data, int len); 109void ar6000_bssInfo_event_rx(struct ar6_softc *ar, u8 *data, int len);
110 110
111void ar6000_dbglog_event(struct ar6_softc *ar, u32 dropped, 111void ar6000_dbglog_event(struct ar6_softc *ar, u32 dropped,
112 A_INT8 *buffer, u32 length); 112 s8 *buffer, u32 length);
113 113
114int ar6000_dbglog_get_debug_logs(struct ar6_softc *ar); 114int ar6000_dbglog_get_debug_logs(struct ar6_softc *ar);
115 115
diff --git a/drivers/staging/ath6kl/os/linux/ioctl.c b/drivers/staging/ath6kl/os/linux/ioctl.c
index dc958fa2972..a055528588a 100644
--- a/drivers/staging/ath6kl/os/linux/ioctl.c
+++ b/drivers/staging/ath6kl/os/linux/ioctl.c
@@ -4410,7 +4410,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
4410 case AR6000_XIOCTL_HCI_CMD: 4410 case AR6000_XIOCTL_HCI_CMD:
4411 { 4411 {
4412 char tmp_buf[512]; 4412 char tmp_buf[512];
4413 A_INT8 i; 4413 s8 i;
4414 WMI_HCI_CMD *cmd = (WMI_HCI_CMD *)tmp_buf; 4414 WMI_HCI_CMD *cmd = (WMI_HCI_CMD *)tmp_buf;
4415 u8 size; 4415 u8 size;
4416 4416
@@ -4689,7 +4689,7 @@ u8 mac_cmp_wild(u8 *mac, u8 *new_mac, u8 wild, u8 new_wild)
4689 4689
4690u8 acl_add_del_mac(WMI_AP_ACL *a, WMI_AP_ACL_MAC_CMD *acl) 4690u8 acl_add_del_mac(WMI_AP_ACL *a, WMI_AP_ACL_MAC_CMD *acl)
4691{ 4691{
4692 A_INT8 already_avail=-1, free_slot=-1, i; 4692 s8 already_avail=-1, free_slot=-1, i;
4693 4693
4694 /* To check whether this mac is already there in our list */ 4694 /* To check whether this mac is already there in our list */
4695 for(i=AP_ACL_SIZE-1;i>=0;i--) 4695 for(i=AP_ACL_SIZE-1;i>=0;i--)
diff --git a/drivers/staging/ath6kl/os/linux/wireless_ext.c b/drivers/staging/ath6kl/os/linux/wireless_ext.c
index aca58dd28e2..df02625fabc 100644
--- a/drivers/staging/ath6kl/os/linux/wireless_ext.c
+++ b/drivers/staging/ath6kl/os/linux/wireless_ext.c
@@ -32,7 +32,7 @@
32#define IWE_STREAM_ADD_VALUE(p1, p2, p3, p4, p5, p6) \ 32#define IWE_STREAM_ADD_VALUE(p1, p2, p3, p4, p5, p6) \
33 iwe_stream_add_value((p1), (p2), (p3), (p4), (p5), (p6)) 33 iwe_stream_add_value((p1), (p2), (p3), (p4), (p5), (p6))
34 34
35static void ar6000_set_quality(struct iw_quality *iq, A_INT8 rssi); 35static void ar6000_set_quality(struct iw_quality *iq, s8 rssi);
36extern unsigned int wmitimeout; 36extern unsigned int wmitimeout;
37extern A_WAITQUEUE_HEAD arEvent; 37extern A_WAITQUEUE_HEAD arEvent;
38 38
@@ -713,7 +713,7 @@ ar6000_ioctl_siwrate(struct net_device *dev,
713{ 713{
714 AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev); 714 AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
715 u32 kbps; 715 u32 kbps;
716 A_INT8 rate_idx; 716 s8 rate_idx;
717 717
718 if (is_iwioctl_allowed(ar->arNextMode, info->cmd) != A_OK) { 718 if (is_iwioctl_allowed(ar->arNextMode, info->cmd) != A_OK) {
719 A_PRINTF("wext_ioctl: cmd=0x%x not allowed in this mode\n", info->cmd); 719 A_PRINTF("wext_ioctl: cmd=0x%x not allowed in this mode\n", info->cmd);
@@ -2564,7 +2564,7 @@ ar6000_ioctl_siwscan(struct net_device *dev,
2564 * drivers for compatibility 2564 * drivers for compatibility
2565 */ 2565 */
2566static void 2566static void
2567ar6000_set_quality(struct iw_quality *iq, A_INT8 rssi) 2567ar6000_set_quality(struct iw_quality *iq, s8 rssi)
2568{ 2568{
2569 if (rssi < 0) { 2569 if (rssi < 0) {
2570 iq->qual = 0; 2570 iq->qual = 0;
diff --git a/drivers/staging/ath6kl/wmi/wmi.c b/drivers/staging/ath6kl/wmi/wmi.c
index 055f2ef0d0e..f5f9aa1a535 100644
--- a/drivers/staging/ath6kl/wmi/wmi.c
+++ b/drivers/staging/ath6kl/wmi/wmi.c
@@ -1671,7 +1671,7 @@ wmi_bitrate_reply_rx(struct wmi_t *wmip, u8 *datap, int len)
1671 A_DPRINTF(DBG_WMI, 1671 A_DPRINTF(DBG_WMI,
1672 (DBGFMT "Enter - rateindex %d\n", DBGARG, reply->rateIndex)); 1672 (DBGFMT "Enter - rateindex %d\n", DBGARG, reply->rateIndex));
1673 1673
1674 if (reply->rateIndex == (A_INT8) RATE_AUTO) { 1674 if (reply->rateIndex == (s8) RATE_AUTO) {
1675 rate = RATE_AUTO; 1675 rate = RATE_AUTO;
1676 } else { 1676 } else {
1677 // the SGI state is stored as the MSb of the rateIndex 1677 // the SGI state is stored as the MSb of the rateIndex
@@ -2294,7 +2294,7 @@ wmi_dbglog_event_rx(struct wmi_t *wmip, u8 *datap, int len)
2294 dropped = *((u32 *)datap); 2294 dropped = *((u32 *)datap);
2295 datap += sizeof(dropped); 2295 datap += sizeof(dropped);
2296 len -= sizeof(dropped); 2296 len -= sizeof(dropped);
2297 A_WMI_DBGLOG_EVENT(wmip->wmi_devt, dropped, (A_INT8*)datap, len); 2297 A_WMI_DBGLOG_EVENT(wmip->wmi_devt, dropped, (s8 *)datap, len);
2298 return A_OK; 2298 return A_OK;
2299} 2299}
2300 2300
@@ -2513,11 +2513,11 @@ int
2513wmi_startscan_cmd(struct wmi_t *wmip, WMI_SCAN_TYPE scanType, 2513wmi_startscan_cmd(struct wmi_t *wmip, WMI_SCAN_TYPE scanType,
2514 u32 forceFgScan, u32 isLegacy, 2514 u32 forceFgScan, u32 isLegacy,
2515 u32 homeDwellTime, u32 forceScanInterval, 2515 u32 homeDwellTime, u32 forceScanInterval,
2516 A_INT8 numChan, u16 *channelList) 2516 s8 numChan, u16 *channelList)
2517{ 2517{
2518 void *osbuf; 2518 void *osbuf;
2519 WMI_START_SCAN_CMD *sc; 2519 WMI_START_SCAN_CMD *sc;
2520 A_INT8 size; 2520 s8 size;
2521 2521
2522 size = sizeof (*sc); 2522 size = sizeof (*sc);
2523 2523
@@ -3399,7 +3399,7 @@ wmi_set_bitrate_cmd(struct wmi_t *wmip, A_INT32 dataRate, A_INT32 mgmtRate, A_IN
3399{ 3399{
3400 void *osbuf; 3400 void *osbuf;
3401 WMI_BIT_RATE_CMD *cmd; 3401 WMI_BIT_RATE_CMD *cmd;
3402 A_INT8 drix, mrix, crix, ret_val; 3402 s8 drix, mrix, crix, ret_val;
3403 3403
3404 if (dataRate != -1) { 3404 if (dataRate != -1) {
3405 ret_val = wmi_validate_bitrate(wmip, dataRate, &drix); 3405 ret_val = wmi_validate_bitrate(wmip, dataRate, &drix);
@@ -3509,10 +3509,9 @@ wmi_is_bitrate_index_valid(struct wmi_t *wmip, A_INT32 rateIndex)
3509 return isValid; 3509 return isValid;
3510} 3510}
3511 3511
3512A_INT8 3512s8 wmi_validate_bitrate(struct wmi_t *wmip, A_INT32 rate, s8 *rate_idx)
3513wmi_validate_bitrate(struct wmi_t *wmip, A_INT32 rate, A_INT8 *rate_idx)
3514{ 3513{
3515 A_INT8 i; 3514 s8 i;
3516 3515
3517 for (i=0;;i++) 3516 for (i=0;;i++)
3518 { 3517 {
@@ -3596,12 +3595,12 @@ wmi_get_channelList_cmd(struct wmi_t *wmip)
3596 */ 3595 */
3597int 3596int
3598wmi_set_channelParams_cmd(struct wmi_t *wmip, u8 scanParam, 3597wmi_set_channelParams_cmd(struct wmi_t *wmip, u8 scanParam,
3599 WMI_PHY_MODE mode, A_INT8 numChan, 3598 WMI_PHY_MODE mode, s8 numChan,
3600 u16 *channelList) 3599 u16 *channelList)
3601{ 3600{
3602 void *osbuf; 3601 void *osbuf;
3603 WMI_CHANNEL_PARAMS_CMD *cmd; 3602 WMI_CHANNEL_PARAMS_CMD *cmd;
3604 A_INT8 size; 3603 s8 size;
3605 3604
3606 size = sizeof (*cmd); 3605 size = sizeof (*cmd);
3607 3606
@@ -3736,7 +3735,7 @@ wmi_set_host_sleep_mode_cmd(struct wmi_t *wmip,
3736 WMI_SET_HOST_SLEEP_MODE_CMD *hostModeCmd) 3735 WMI_SET_HOST_SLEEP_MODE_CMD *hostModeCmd)
3737{ 3736{
3738 void *osbuf; 3737 void *osbuf;
3739 A_INT8 size; 3738 s8 size;
3740 WMI_SET_HOST_SLEEP_MODE_CMD *cmd; 3739 WMI_SET_HOST_SLEEP_MODE_CMD *cmd;
3741 u16 activeTsids=0; 3740 u16 activeTsids=0;
3742 u8 streamExists=0; 3741 u8 streamExists=0;
@@ -3798,7 +3797,7 @@ wmi_set_wow_mode_cmd(struct wmi_t *wmip,
3798 WMI_SET_WOW_MODE_CMD *wowModeCmd) 3797 WMI_SET_WOW_MODE_CMD *wowModeCmd)
3799{ 3798{
3800 void *osbuf; 3799 void *osbuf;
3801 A_INT8 size; 3800 s8 size;
3802 WMI_SET_WOW_MODE_CMD *cmd; 3801 WMI_SET_WOW_MODE_CMD *cmd;
3803 3802
3804 size = sizeof (*cmd); 3803 size = sizeof (*cmd);
@@ -3824,7 +3823,7 @@ wmi_get_wow_list_cmd(struct wmi_t *wmip,
3824 WMI_GET_WOW_LIST_CMD *wowListCmd) 3823 WMI_GET_WOW_LIST_CMD *wowListCmd)
3825{ 3824{
3826 void *osbuf; 3825 void *osbuf;
3827 A_INT8 size; 3826 s8 size;
3828 WMI_GET_WOW_LIST_CMD *cmd; 3827 WMI_GET_WOW_LIST_CMD *cmd;
3829 3828
3830 size = sizeof (*cmd); 3829 size = sizeof (*cmd);
@@ -3867,7 +3866,7 @@ int wmi_add_wow_pattern_cmd(struct wmi_t *wmip,
3867 u8 pattern_size) 3866 u8 pattern_size)
3868{ 3867{
3869 void *osbuf; 3868 void *osbuf;
3870 A_INT8 size; 3869 s8 size;
3871 WMI_ADD_WOW_PATTERN_CMD *cmd; 3870 WMI_ADD_WOW_PATTERN_CMD *cmd;
3872 u8 *filter_mask = NULL; 3871 u8 *filter_mask = NULL;
3873 3872
@@ -3901,7 +3900,7 @@ wmi_del_wow_pattern_cmd(struct wmi_t *wmip,
3901 WMI_DEL_WOW_PATTERN_CMD *delWowCmd) 3900 WMI_DEL_WOW_PATTERN_CMD *delWowCmd)
3902{ 3901{
3903 void *osbuf; 3902 void *osbuf;
3904 A_INT8 size; 3903 s8 size;
3905 WMI_DEL_WOW_PATTERN_CMD *cmd; 3904 WMI_DEL_WOW_PATTERN_CMD *cmd;
3906 3905
3907 size = sizeof (*cmd); 3906 size = sizeof (*cmd);
@@ -4003,7 +4002,7 @@ wmi_set_lq_threshold_params(struct wmi_t *wmip,
4003 WMI_LQ_THRESHOLD_PARAMS_CMD *lqCmd) 4002 WMI_LQ_THRESHOLD_PARAMS_CMD *lqCmd)
4004{ 4003{
4005 void *osbuf; 4004 void *osbuf;
4006 A_INT8 size; 4005 s8 size;
4007 WMI_LQ_THRESHOLD_PARAMS_CMD *cmd; 4006 WMI_LQ_THRESHOLD_PARAMS_CMD *cmd;
4008 /* These values are in ascending order */ 4007 /* These values are in ascending order */
4009 if( lqCmd->thresholdAbove4_Val <= lqCmd->thresholdAbove3_Val || 4008 if( lqCmd->thresholdAbove4_Val <= lqCmd->thresholdAbove3_Val ||
@@ -4037,7 +4036,7 @@ int
4037wmi_set_error_report_bitmask(struct wmi_t *wmip, u32 mask) 4036wmi_set_error_report_bitmask(struct wmi_t *wmip, u32 mask)
4038{ 4037{
4039 void *osbuf; 4038 void *osbuf;
4040 A_INT8 size; 4039 s8 size;
4041 WMI_TARGET_ERROR_REPORT_BITMASK *cmd; 4040 WMI_TARGET_ERROR_REPORT_BITMASK *cmd;
4042 4041
4043 size = sizeof (*cmd); 4042 size = sizeof (*cmd);
@@ -5351,7 +5350,7 @@ wmi_set_halparam_cmd(struct wmi_t *wmip, u8 *cmd, u16 dataLen)
5351} 5350}
5352 5351
5353A_INT32 5352A_INT32
5354wmi_get_rate(A_INT8 rateindex) 5353wmi_get_rate(s8 rateindex)
5355{ 5354{
5356 if (rateindex == RATE_AUTO) { 5355 if (rateindex == RATE_AUTO) {
5357 return 0; 5356 return 0;
@@ -5921,7 +5920,7 @@ wmi_send_rssi_threshold_params(struct wmi_t *wmip,
5921 WMI_RSSI_THRESHOLD_PARAMS_CMD *rssiCmd) 5920 WMI_RSSI_THRESHOLD_PARAMS_CMD *rssiCmd)
5922{ 5921{
5923 void *osbuf; 5922 void *osbuf;
5924 A_INT8 size; 5923 s8 size;
5925 WMI_RSSI_THRESHOLD_PARAMS_CMD *cmd; 5924 WMI_RSSI_THRESHOLD_PARAMS_CMD *cmd;
5926 5925
5927 size = sizeof (*cmd); 5926 size = sizeof (*cmd);
@@ -5945,7 +5944,7 @@ wmi_send_snr_threshold_params(struct wmi_t *wmip,
5945 WMI_SNR_THRESHOLD_PARAMS_CMD *snrCmd) 5944 WMI_SNR_THRESHOLD_PARAMS_CMD *snrCmd)
5946{ 5945{
5947 void *osbuf; 5946 void *osbuf;
5948 A_INT8 size; 5947 s8 size;
5949 WMI_SNR_THRESHOLD_PARAMS_CMD *cmd; 5948 WMI_SNR_THRESHOLD_PARAMS_CMD *cmd;
5950 5949
5951 size = sizeof (*cmd); 5950 size = sizeof (*cmd);