#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))
typedef PREPACK struct {
- A_INT8 rssi;
+ s8 rssi;
u8 info; /* usage of 'info' field(8-bit):
* b1:b0 - WMI_MSG_TYPE
* b4:b3:b2 - UP(tid)
} POSTPACK WMI_POWER_MODE_CMD;
typedef PREPACK struct {
- A_INT8 status; /* WMI_SET_PARAMS_REPLY */
+ s8 status; /* WMI_SET_PARAMS_REPLY */
} POSTPACK WMI_SET_PARAMS_REPLY;
typedef PREPACK struct {
typedef PREPACK struct {
u8 bssid[ATH_MAC_LEN];
- A_INT8 bias;
+ s8 bias;
} POSTPACK WMI_BSS_BIAS;
typedef PREPACK struct {
} POSTPACK WMI_NEIGHBOR_INFO;
typedef PREPACK struct {
- A_INT8 numberOfAps;
+ s8 numberOfAps;
WMI_NEIGHBOR_INFO neighbor[1];
} POSTPACK WMI_NEIGHBOR_REPORT_EVENT;
typedef PREPACK struct {
u16 channel;
u8 frameType; /* see WMI_OPT_FTYPE */
- A_INT8 snr;
+ s8 snr;
u8 srcAddr[ATH_MAC_LEN];
u8 bssid[ATH_MAC_LEN];
} POSTPACK WMI_OPT_RX_INFO_HDR;
typedef PREPACK struct {
A_INT32 roam_util;
u8 bssid[ATH_MAC_LEN];
- A_INT8 rssi;
- A_INT8 rssidt;
- A_INT8 last_rssi;
- A_INT8 util;
- A_INT8 bias;
+ s8 rssi;
+ s8 rssidt;
+ s8 last_rssi;
+ s8 util;
+ s8 bias;
u8 reserved; /* For alignment */
} POSTPACK WMI_BSS_ROAM_INFO;
} WMI_BIT_RATE;
typedef PREPACK struct {
- A_INT8 rateIndex; /* see WMI_BIT_RATE */
- A_INT8 mgmtRateIndex;
- A_INT8 ctlRateIndex;
+ s8 rateIndex; /* see WMI_BIT_RATE */
+ s8 mgmtRateIndex;
+ s8 ctlRateIndex;
} POSTPACK WMI_BIT_RATE_CMD;
typedef PREPACK struct {
- A_INT8 rateIndex; /* see WMI_BIT_RATE */
+ s8 rateIndex; /* see WMI_BIT_RATE */
} POSTPACK WMI_BIT_RATE_REPLY;
u32 assoc_time;
u32 allow_txrx_time;
u8 disassoc_bssid[ATH_MAC_LEN];
- A_INT8 disassoc_bss_rssi;
+ s8 disassoc_bss_rssi;
u8 assoc_bssid[ATH_MAC_LEN];
- A_INT8 assoc_bss_rssi;
+ s8 assoc_bss_rssi;
} POSTPACK WMI_TARGET_ROAM_TIME;
typedef PREPACK struct {
int wmi_startscan_cmd(struct wmi_t *wmip, WMI_SCAN_TYPE scanType,
u32 forceFgScan, u32 isLegacy,
u32 homeDwellTime, u32 forceScanInterval,
- A_INT8 numChan, u16 *channelList);
+ s8 numChan, u16 *channelList);
int wmi_scanparams_cmd(struct wmi_t *wmip, u16 fg_start_sec,
u16 fg_end_sec, u16 bg_sec,
u16 minact_chdw_msec,
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_get_bitrate_cmd(struct wmi_t *wmip);
-A_INT8 wmi_validate_bitrate(struct wmi_t *wmip, A_INT32 rate, A_INT8 *rate_idx);
+s8 wmi_validate_bitrate(struct wmi_t *wmip, A_INT32 rate, s8 *rate_idx);
int wmi_get_regDomain_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,
- WMI_PHY_MODE mode, A_INT8 numChan,
+ WMI_PHY_MODE mode, s8 numChan,
u16 *channelList);
int wmi_set_snr_threshold_params(struct wmi_t *wmip,
int wmi_set_halparam_cmd(struct wmi_t *wmip, u8 *cmd, u16 dataLen);
-A_INT32 wmi_get_rate(A_INT8 rateindex);
+A_INT32 wmi_get_rate(s8 rateindex);
int wmi_set_ip_cmd(struct wmi_t *wmip, WMI_SET_IP_CMD *cmd);
ar->dbglog_init_done = true;
}
-u32 dbglog_get_debug_fragment(A_INT8 *datap, u32 len, u32 limit)
+u32 dbglog_get_debug_fragment(s8 *datap, u32 len, u32 limit)
{
A_INT32 *buffer;
u32 count;
}
void
-dbglog_parse_debug_logs(A_INT8 *datap, u32 len)
+dbglog_parse_debug_logs(s8 *datap, u32 len)
{
A_INT32 *buffer;
u32 count;
{
break;
}
- ar6000_dbglog_event(ar, dropped, (A_INT8*)&ar->log_buffer[ar->log_cnt], length);
+ ar6000_dbglog_event(ar, dropped, (s8 *)&ar->log_buffer[ar->log_cnt], length);
ar->log_cnt += length;
} else {
AR_DEBUG_PRINTF(ATH_DEBUG_DBG_LOG,("Length: %d (Total size: %d)\n",
void
ar6000_dbglog_event(AR_SOFTC_T *ar, u32 dropped,
- A_INT8 *buffer, u32 length)
+ s8 *buffer, u32 length)
{
#ifdef REPORT_DEBUG_LOGS_TO_APP
#define MAX_WIRELESS_EVENT_SIZE 252
dropped, length));
/* Interpret the debug logs */
- dbglog_parse_debug_logs((A_INT8*)buffer, length);
+ dbglog_parse_debug_logs((s8 *)buffer, length);
#endif /* REPORT_DEBUG_LOGS_TO_APP */
}
void
-ar6000_channelList_rx(void *devt, A_INT8 numChan, u16 *chanList)
+ar6000_channelList_rx(void *devt, s8 numChan, u16 *chanList)
{
AR_SOFTC_T *ar = (AR_SOFTC_T *)devt;
ar6000_hci_event_rcv_evt(struct ar6_softc *ar, WMI_HCI_EVENT *cmd)
{
void *osbuf = NULL;
- A_INT8 i;
+ s8 i;
u8 size, *buf;
int ret = A_OK;
u16 arListenIntervalT;
struct ar6000_version arVersion;
u32 arTargetType;
- A_INT8 arRssi;
+ s8 arRssi;
u8 arTxPwr;
bool arTxPwrSet;
A_INT32 arBitRate;
struct net_device_stats arNetStats;
struct iw_statistics arIwStats;
- A_INT8 arNumChannels;
+ s8 arNumChannels;
u16 arChannelList[32];
u32 arRegCode;
bool statsUpdatePending;
TARGET_STATS arTargetStats;
- A_INT8 arMaxRetries;
+ s8 arMaxRetries;
u8 arPhyCapability;
#ifdef CONFIG_HOST_TCMD_SUPPORT
u8 tcmdRxReport;
void ar6000_tkip_micerr_event(struct ar6_softc *ar, u8 keyid,
bool ismcast);
void ar6000_bitrate_rx(void *devt, A_INT32 rateKbps);
-void ar6000_channelList_rx(void *devt, A_INT8 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_txPwr_rx(void *devt, u8 txPwr);
void ar6000_keepalive_rx(void *devt, u8 configured);
void ar6000_bssInfo_event_rx(struct ar6_softc *ar, u8 *data, int len);
void ar6000_dbglog_event(struct ar6_softc *ar, u32 dropped,
- A_INT8 *buffer, u32 length);
+ s8 *buffer, u32 length);
int ar6000_dbglog_get_debug_logs(struct ar6_softc *ar);
case AR6000_XIOCTL_HCI_CMD:
{
char tmp_buf[512];
- A_INT8 i;
+ s8 i;
WMI_HCI_CMD *cmd = (WMI_HCI_CMD *)tmp_buf;
u8 size;
u8 acl_add_del_mac(WMI_AP_ACL *a, WMI_AP_ACL_MAC_CMD *acl)
{
- A_INT8 already_avail=-1, free_slot=-1, i;
+ s8 already_avail=-1, free_slot=-1, i;
/* To check whether this mac is already there in our list */
for(i=AP_ACL_SIZE-1;i>=0;i--)
#define IWE_STREAM_ADD_VALUE(p1, p2, p3, p4, p5, p6) \
iwe_stream_add_value((p1), (p2), (p3), (p4), (p5), (p6))
-static void ar6000_set_quality(struct iw_quality *iq, A_INT8 rssi);
+static void ar6000_set_quality(struct iw_quality *iq, s8 rssi);
extern unsigned int wmitimeout;
extern A_WAITQUEUE_HEAD arEvent;
{
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
u32 kbps;
- A_INT8 rate_idx;
+ s8 rate_idx;
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);
* drivers for compatibility
*/
static void
-ar6000_set_quality(struct iw_quality *iq, A_INT8 rssi)
+ar6000_set_quality(struct iw_quality *iq, s8 rssi)
{
if (rssi < 0) {
iq->qual = 0;
A_DPRINTF(DBG_WMI,
(DBGFMT "Enter - rateindex %d\n", DBGARG, reply->rateIndex));
- if (reply->rateIndex == (A_INT8) RATE_AUTO) {
+ if (reply->rateIndex == (s8) RATE_AUTO) {
rate = RATE_AUTO;
} else {
// the SGI state is stored as the MSb of the rateIndex
dropped = *((u32 *)datap);
datap += sizeof(dropped);
len -= sizeof(dropped);
- A_WMI_DBGLOG_EVENT(wmip->wmi_devt, dropped, (A_INT8*)datap, len);
+ A_WMI_DBGLOG_EVENT(wmip->wmi_devt, dropped, (s8 *)datap, len);
return A_OK;
}
wmi_startscan_cmd(struct wmi_t *wmip, WMI_SCAN_TYPE scanType,
u32 forceFgScan, u32 isLegacy,
u32 homeDwellTime, u32 forceScanInterval,
- A_INT8 numChan, u16 *channelList)
+ s8 numChan, u16 *channelList)
{
void *osbuf;
WMI_START_SCAN_CMD *sc;
- A_INT8 size;
+ s8 size;
size = sizeof (*sc);
{
void *osbuf;
WMI_BIT_RATE_CMD *cmd;
- A_INT8 drix, mrix, crix, ret_val;
+ s8 drix, mrix, crix, ret_val;
if (dataRate != -1) {
ret_val = wmi_validate_bitrate(wmip, dataRate, &drix);
return isValid;
}
-A_INT8
-wmi_validate_bitrate(struct wmi_t *wmip, A_INT32 rate, A_INT8 *rate_idx)
+s8 wmi_validate_bitrate(struct wmi_t *wmip, A_INT32 rate, s8 *rate_idx)
{
- A_INT8 i;
+ s8 i;
for (i=0;;i++)
{
*/
int
wmi_set_channelParams_cmd(struct wmi_t *wmip, u8 scanParam,
- WMI_PHY_MODE mode, A_INT8 numChan,
+ WMI_PHY_MODE mode, s8 numChan,
u16 *channelList)
{
void *osbuf;
WMI_CHANNEL_PARAMS_CMD *cmd;
- A_INT8 size;
+ s8 size;
size = sizeof (*cmd);
WMI_SET_HOST_SLEEP_MODE_CMD *hostModeCmd)
{
void *osbuf;
- A_INT8 size;
+ s8 size;
WMI_SET_HOST_SLEEP_MODE_CMD *cmd;
u16 activeTsids=0;
u8 streamExists=0;
WMI_SET_WOW_MODE_CMD *wowModeCmd)
{
void *osbuf;
- A_INT8 size;
+ s8 size;
WMI_SET_WOW_MODE_CMD *cmd;
size = sizeof (*cmd);
WMI_GET_WOW_LIST_CMD *wowListCmd)
{
void *osbuf;
- A_INT8 size;
+ s8 size;
WMI_GET_WOW_LIST_CMD *cmd;
size = sizeof (*cmd);
u8 pattern_size)
{
void *osbuf;
- A_INT8 size;
+ s8 size;
WMI_ADD_WOW_PATTERN_CMD *cmd;
u8 *filter_mask = NULL;
WMI_DEL_WOW_PATTERN_CMD *delWowCmd)
{
void *osbuf;
- A_INT8 size;
+ s8 size;
WMI_DEL_WOW_PATTERN_CMD *cmd;
size = sizeof (*cmd);
WMI_LQ_THRESHOLD_PARAMS_CMD *lqCmd)
{
void *osbuf;
- A_INT8 size;
+ s8 size;
WMI_LQ_THRESHOLD_PARAMS_CMD *cmd;
/* These values are in ascending order */
if( lqCmd->thresholdAbove4_Val <= lqCmd->thresholdAbove3_Val ||
wmi_set_error_report_bitmask(struct wmi_t *wmip, u32 mask)
{
void *osbuf;
- A_INT8 size;
+ s8 size;
WMI_TARGET_ERROR_REPORT_BITMASK *cmd;
size = sizeof (*cmd);
}
A_INT32
-wmi_get_rate(A_INT8 rateindex)
+wmi_get_rate(s8 rateindex)
{
if (rateindex == RATE_AUTO) {
return 0;
WMI_RSSI_THRESHOLD_PARAMS_CMD *rssiCmd)
{
void *osbuf;
- A_INT8 size;
+ s8 size;
WMI_RSSI_THRESHOLD_PARAMS_CMD *cmd;
size = sizeof (*cmd);
WMI_SNR_THRESHOLD_PARAMS_CMD *snrCmd)
{
void *osbuf;
- A_INT8 size;
+ s8 size;
WMI_SNR_THRESHOLD_PARAMS_CMD *cmd;
size = sizeof (*cmd);