diff options
author | Holger Freyther <zecke@openmoko.org> | 2008-11-19 17:10:46 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2008-11-19 17:10:46 +0000 |
commit | e19cfdfa7f385ea2601a2faa582d2e78b88ab110 (patch) | |
tree | 74cd85692da3334ee672cbbd390e9666513a336e /drivers/sdio/function/wlan/ar6000/ar6000/ar6000_drv.c | |
parent | 7acb8fa9c7540a203cfd9b9ef01f737f16a42890 (diff) |
From fa269b44512a03523b164c3cebc20312748c524b Mon Sep 17 00:00:00 2001
Subject: [PATCH] [ar6k] Build the wireless driver without DEBUG
- Remove DEBUG from the Makefile
- Do not send events through netlink to userspace. We might
need to reevaluate this. But we seem to use wireless_send_event
at the right places.
(SEND_EVENT_TO_APP)
- Do not report debug logs to apps
(REPORT_DEBUG_LOGS_TO_APP)
Signed-Off-By: Holger Freyther <zecke@openmoko.org>
Diffstat (limited to 'drivers/sdio/function/wlan/ar6000/ar6000/ar6000_drv.c')
-rw-r--r-- | drivers/sdio/function/wlan/ar6000/ar6000/ar6000_drv.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/sdio/function/wlan/ar6000/ar6000/ar6000_drv.c b/drivers/sdio/function/wlan/ar6000/ar6000/ar6000_drv.c index dacc00aedb5..93ed978ae81 100644 --- a/drivers/sdio/function/wlan/ar6000/ar6000/ar6000_drv.c +++ b/drivers/sdio/function/wlan/ar6000/ar6000/ar6000_drv.c @@ -155,6 +155,9 @@ MODULE_PARM(txcreditintrenable, "0-3i"); MODULE_PARM(txcreditintrenableaggregate, "0-3i"); #endif +#else +unsigned int resetok = 1; + #endif /* DEBUG */ unsigned int tx_attempt[HTC_MAILBOX_NUM_MAX] = {0}; @@ -265,7 +268,9 @@ static struct ar_cookie s_ar_cookie_mem[MAX_COOKIE_NUM]; * Flag to govern whether the debug logs should be parsed in the kernel * or reported to the application. */ +#ifdef DEBUG #define REPORT_DEBUG_LOGS_TO_APP +#endif A_STATUS ar6000_set_host_app_area(AR_SOFTC_T *ar) @@ -874,9 +879,11 @@ static void ar6000_target_failure(void *Instance, A_STATUS Status) sip = TRUE; errEvent.errorVal = WMI_TARGET_COM_ERR | WMI_TARGET_FATAL_ERR; +#ifdef SEND_EVENT_TO_APP ar6000_send_event_to_app(ar, WMI_ERROR_REPORT_EVENTID, (A_UINT8 *)&errEvent, sizeof(WMI_TARGET_ERROR_REPORT_EVENT)); +#endif } } } @@ -1026,9 +1033,11 @@ static void ar6000_detect_error(unsigned long ptr) ar->arHBChallengeResp.seqNum = 0; errEvent.errorVal = WMI_TARGET_COM_ERR | WMI_TARGET_FATAL_ERR; AR6000_SPIN_UNLOCK(&ar->arLock, 0); +#ifdef SEND_EVENT_TO_APP ar6000_send_event_to_app(ar, WMI_ERROR_REPORT_EVENTID, (A_UINT8 *)&errEvent, sizeof(WMI_TARGET_ERROR_REPORT_EVENT)); +#endif return; } @@ -2500,7 +2509,9 @@ ar6000_rssiThreshold_event(AR_SOFTC_T *ar, WMI_RSSI_THRESHOLD_VAL newThreshold, userRssiThold.tag = rssi_map[newThreshold].tag; userRssiThold.rssi = rssi; AR_DEBUG2_PRINTF("rssi Threshold range = %d tag = %d rssi = %d\n", newThreshold, userRssiThold.tag, rssi); +#ifdef SEND_EVENT_TO_APP ar6000_send_event_to_app(ar, WMI_RSSI_THRESHOLD_EVENTID,(A_UINT8 *)&userRssiThold, sizeof(USER_RSSI_THOLD)); +#endif } @@ -2509,8 +2520,10 @@ ar6000_hbChallengeResp_event(AR_SOFTC_T *ar, A_UINT32 cookie, A_UINT32 source) { if (source == APP_HB_CHALLENGE) { /* Report it to the app in case it wants a positive acknowledgement */ +#ifdef SEND_EVENT_TO_APP ar6000_send_event_to_app(ar, WMIX_HB_CHALLENGE_RESP_EVENTID, (A_UINT8 *)&cookie, sizeof(cookie)); +#endif } else { /* This would ignore the replys that come in after their due time */ if (cookie == ar->arHBChallengeResp.seqNum) { |