Commit 438d2d13 authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman

staging: csr: remove func_enter macro

this macro is used for debugging purposes,

it actually defined as

if (unifi_debug >= 5) {
	printk("unifi => %s\n", __FUNCTION__);
}

which produces too many of those prints if the unifi_debug is >=5.
remove these calls and the macro itself altogether
Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cb1f6268
...@@ -70,8 +70,6 @@ card_t* unifi_alloc_card(CsrSdioFunction *sdio, void *ospriv) ...@@ -70,8 +70,6 @@ card_t* unifi_alloc_card(CsrSdioFunction *sdio, void *ospriv)
card_t *card; card_t *card;
u32 i; u32 i;
func_enter();
card = kzalloc(sizeof(card_t), GFP_KERNEL); card = kzalloc(sizeof(card_t), GFP_KERNEL);
if (card == NULL) if (card == NULL)
...@@ -171,7 +169,6 @@ CsrResult unifi_init_card(card_t *card, s32 led_mask) ...@@ -171,7 +169,6 @@ CsrResult unifi_init_card(card_t *card, s32 led_mask)
{ {
CsrResult r; CsrResult r;
func_enter();
if (card == NULL) if (card == NULL)
{ {
...@@ -223,8 +220,6 @@ CsrResult unifi_init(card_t *card) ...@@ -223,8 +220,6 @@ CsrResult unifi_init(card_t *card)
CsrResult r; CsrResult r;
CsrResult csrResult; CsrResult csrResult;
func_enter();
if (card == NULL) if (card == NULL)
{ {
func_exit_r(CSR_WIFI_HIP_RESULT_INVALID_VALUE); func_exit_r(CSR_WIFI_HIP_RESULT_INVALID_VALUE);
...@@ -363,8 +358,6 @@ CsrResult unifi_download(card_t *card, s32 led_mask) ...@@ -363,8 +358,6 @@ CsrResult unifi_download(card_t *card, s32 led_mask)
CsrResult r; CsrResult r;
void *dlpriv; void *dlpriv;
func_enter();
if (card == NULL) if (card == NULL)
{ {
func_exit_r(CSR_WIFI_HIP_RESULT_INVALID_VALUE); func_exit_r(CSR_WIFI_HIP_RESULT_INVALID_VALUE);
...@@ -425,8 +418,6 @@ static CsrResult unifi_hip_init(card_t *card) ...@@ -425,8 +418,6 @@ static CsrResult unifi_hip_init(card_t *card)
CsrResult r; CsrResult r;
CsrResult csrResult; CsrResult csrResult;
func_enter();
r = card_hw_init(card); r = card_hw_init(card);
if (r == CSR_WIFI_HIP_RESULT_NO_DEVICE) if (r == CSR_WIFI_HIP_RESULT_NO_DEVICE)
{ {
...@@ -609,8 +600,6 @@ static CsrResult card_hw_init(card_t *card) ...@@ -609,8 +600,6 @@ static CsrResult card_hw_init(card_t *card)
s16 search_4slut_again; s16 search_4slut_again;
CsrResult csrResult; CsrResult csrResult;
func_enter();
/* /*
* The device revision from the TPLMID_MANF and TPLMID_CARD fields * The device revision from the TPLMID_MANF and TPLMID_CARD fields
* of the CIS are available as * of the CIS are available as
...@@ -1004,8 +993,6 @@ static CsrResult card_wait_for_unifi_to_reset(card_t *card) ...@@ -1004,8 +993,6 @@ static CsrResult card_wait_for_unifi_to_reset(card_t *card)
u8 io_enable; u8 io_enable;
CsrResult csrResult; CsrResult csrResult;
func_enter();
r = CSR_RESULT_SUCCESS; r = CSR_RESULT_SUCCESS;
for (i = 0; i < MAILBOX2_ATTEMPTS; i++) for (i = 0; i < MAILBOX2_ATTEMPTS; i++)
{ {
...@@ -1136,8 +1123,6 @@ static CsrResult card_wait_for_unifi_to_disable(card_t *card) ...@@ -1136,8 +1123,6 @@ static CsrResult card_wait_for_unifi_to_disable(card_t *card)
u8 io_enable; u8 io_enable;
CsrResult csrResult; CsrResult csrResult;
func_enter();
if (card->chip_id <= SDIO_CARD_ID_UNIFI_2) if (card->chip_id <= SDIO_CARD_ID_UNIFI_2)
{ {
unifi_error(card->ospriv, unifi_error(card->ospriv,
...@@ -1238,8 +1223,6 @@ CsrResult card_wait_for_firmware_to_start(card_t *card, u32 *paddr) ...@@ -1238,8 +1223,6 @@ CsrResult card_wait_for_firmware_to_start(card_t *card, u32 *paddr)
u16 mbox0, mbox1; u16 mbox0, mbox1;
CsrResult r; CsrResult r;
func_enter();
/* /*
* Wait for UniFi to initialise its data structures by polling * Wait for UniFi to initialise its data structures by polling
* the SHARED_MAILBOX1 register. * the SHARED_MAILBOX1 register.
...@@ -1358,7 +1341,6 @@ CsrResult card_wait_for_firmware_to_start(card_t *card, u32 *paddr) ...@@ -1358,7 +1341,6 @@ CsrResult card_wait_for_firmware_to_start(card_t *card, u32 *paddr)
*/ */
CsrResult unifi_capture_panic(card_t *card) CsrResult unifi_capture_panic(card_t *card)
{ {
func_enter();
/* The firmware must have previously initialised to read the panic addresses /* The firmware must have previously initialised to read the panic addresses
* from the SLUT * from the SLUT
...@@ -1405,8 +1387,6 @@ static CsrResult card_access_panic(card_t *card) ...@@ -1405,8 +1387,6 @@ static CsrResult card_access_panic(card_t *card)
s32 i; s32 i;
CsrResult r, sr; CsrResult r, sr;
func_enter();
/* A chip version of zero means that the version never got succesfully read /* A chip version of zero means that the version never got succesfully read
* during reset. In this case give up because it will not be possible to * during reset. In this case give up because it will not be possible to
* verify the chip version. * verify the chip version.
...@@ -1536,8 +1516,6 @@ void unifi_read_panic(card_t *card) ...@@ -1536,8 +1516,6 @@ void unifi_read_panic(card_t *card)
CsrResult r; CsrResult r;
u16 p_code, p_arg; u16 p_code, p_arg;
func_enter();
/* The firmware must have previously initialised to read the panic addresses /* The firmware must have previously initialised to read the panic addresses
* from the SLUT * from the SLUT
*/ */
...@@ -1607,8 +1585,6 @@ static CsrResult card_allocate_memory_resources(card_t *card) ...@@ -1607,8 +1585,6 @@ static CsrResult card_allocate_memory_resources(card_t *card)
s16 n, i, k, r; s16 n, i, k, r;
sdio_config_data_t *cfg_data; sdio_config_data_t *cfg_data;
func_enter();
/* Reset any state carried forward from a previous life */ /* Reset any state carried forward from a previous life */
card->fh_command_queue.q_rd_ptr = 0; card->fh_command_queue.q_rd_ptr = 0;
card->fh_command_queue.q_wr_ptr = 0; card->fh_command_queue.q_wr_ptr = 0;
...@@ -1781,7 +1757,6 @@ static void unifi_free_bulk_data(card_t *card, bulk_data_desc_t *bulk_data_slot) ...@@ -1781,7 +1757,6 @@ static void unifi_free_bulk_data(card_t *card, bulk_data_desc_t *bulk_data_slot)
*/ */
static void card_free_memory_resources(card_t *card) static void card_free_memory_resources(card_t *card)
{ {
func_enter();
unifi_trace(card->ospriv, UDBG1, "Freeing card memory resources.\n"); unifi_trace(card->ospriv, UDBG1, "Freeing card memory resources.\n");
...@@ -1820,8 +1795,6 @@ static void card_init_soft_queues(card_t *card) ...@@ -1820,8 +1795,6 @@ static void card_init_soft_queues(card_t *card)
{ {
s16 i; s16 i;
func_enter();
unifi_trace(card->ospriv, UDBG1, "Initialising internal signal queues.\n"); unifi_trace(card->ospriv, UDBG1, "Initialising internal signal queues.\n");
/* Reset any state carried forward from a previous life */ /* Reset any state carried forward from a previous life */
card->fh_command_queue.q_rd_ptr = 0; card->fh_command_queue.q_rd_ptr = 0;
...@@ -1858,7 +1831,6 @@ static void card_init_soft_queues(card_t *card) ...@@ -1858,7 +1831,6 @@ static void card_init_soft_queues(card_t *card)
void unifi_cancel_pending_signals(card_t *card) void unifi_cancel_pending_signals(card_t *card)
{ {
s16 i, n, r; s16 i, n, r;
func_enter();
unifi_trace(card->ospriv, UDBG1, "Canceling pending signals.\n"); unifi_trace(card->ospriv, UDBG1, "Canceling pending signals.\n");
...@@ -1951,7 +1923,6 @@ void unifi_cancel_pending_signals(card_t *card) ...@@ -1951,7 +1923,6 @@ void unifi_cancel_pending_signals(card_t *card)
*/ */
void unifi_free_card(card_t *card) void unifi_free_card(card_t *card)
{ {
func_enter();
#ifdef CSR_PRE_ALLOC_NET_DATA #ifdef CSR_PRE_ALLOC_NET_DATA
prealloc_netdata_free(card); prealloc_netdata_free(card);
#endif #endif
...@@ -1989,8 +1960,6 @@ static CsrResult card_init_slots(card_t *card) ...@@ -1989,8 +1960,6 @@ static CsrResult card_init_slots(card_t *card)
CsrResult r; CsrResult r;
u8 i; u8 i;
func_enter();
/* Allocate the buffers we need, only once. */ /* Allocate the buffers we need, only once. */
if (card->memory_resources_allocated == 1) if (card->memory_resources_allocated == 1)
{ {
...@@ -2153,8 +2122,6 @@ static void CardReassignDynamicReservation(card_t *card) ...@@ -2153,8 +2122,6 @@ static void CardReassignDynamicReservation(card_t *card)
{ {
u8 i; u8 i;
func_enter();
unifi_trace(card->ospriv, UDBG5, "Packets Txed %d %d %d %d\n", unifi_trace(card->ospriv, UDBG5, "Packets Txed %d %d %d %d\n",
card->dynamic_slot_data.packets_txed[0], card->dynamic_slot_data.packets_txed[0],
card->dynamic_slot_data.packets_txed[1], card->dynamic_slot_data.packets_txed[1],
...@@ -2206,8 +2173,6 @@ static void CardCheckDynamicReservation(card_t *card, unifi_TrafficQueue queue) ...@@ -2206,8 +2173,6 @@ static void CardCheckDynamicReservation(card_t *card, unifi_TrafficQueue queue)
q_t *sigq; q_t *sigq;
u16 num_data_slots = card->config_data.num_fromhost_data_slots - UNIFI_RESERVED_COMMAND_SLOTS; u16 num_data_slots = card->config_data.num_fromhost_data_slots - UNIFI_RESERVED_COMMAND_SLOTS;
func_enter();
/* Calculate the pending queue length */ /* Calculate the pending queue length */
sigq = &card->fh_traffic_queue[queue]; sigq = &card->fh_traffic_queue[queue];
q_len = CSR_WIFI_HIP_Q_SLOTS_USED(sigq); q_len = CSR_WIFI_HIP_Q_SLOTS_USED(sigq);
...@@ -2336,8 +2301,6 @@ void CardClearFromHostDataSlot(card_t *card, const s16 slot) ...@@ -2336,8 +2301,6 @@ void CardClearFromHostDataSlot(card_t *card, const s16 slot)
u8 queue = card->from_host_data[slot].queue; u8 queue = card->from_host_data[slot].queue;
const void *os_data_ptr = card->from_host_data[slot].bd.os_data_ptr; const void *os_data_ptr = card->from_host_data[slot].bd.os_data_ptr;
func_enter();
if (card->from_host_data[slot].bd.data_length == 0) if (card->from_host_data[slot].bd.data_length == 0)
{ {
unifi_warning(card->ospriv, unifi_warning(card->ospriv,
...@@ -2457,8 +2420,6 @@ u16 CardGetFreeFromHostDataSlots(card_t *card) ...@@ -2457,8 +2420,6 @@ u16 CardGetFreeFromHostDataSlots(card_t *card)
{ {
u16 i, n = 0; u16 i, n = 0;
func_enter();
/* First two slots reserved for MLME */ /* First two slots reserved for MLME */
for (i = 0; i < card->config_data.num_fromhost_data_slots; i++) for (i = 0; i < card->config_data.num_fromhost_data_slots; i++)
{ {
...@@ -2506,7 +2467,6 @@ u16 CardAreAllFromHostDataSlotsEmpty(card_t *card) ...@@ -2506,7 +2467,6 @@ u16 CardAreAllFromHostDataSlotsEmpty(card_t *card)
static CsrResult unifi_identify_hw(card_t *card) static CsrResult unifi_identify_hw(card_t *card)
{ {
func_enter();
card->chip_id = card->sdio_if->sdioId.cardId; card->chip_id = card->sdio_if->sdioId.cardId;
card->function = card->sdio_if->sdioId.sdioFunction; card->function = card->sdio_if->sdioId.sdioFunction;
...@@ -2541,8 +2501,6 @@ static CsrResult unifi_prepare_hw(card_t *card) ...@@ -2541,8 +2501,6 @@ static CsrResult unifi_prepare_hw(card_t *card)
CsrResult csrResult; CsrResult csrResult;
enum unifi_host_state old_state = card->host_state; enum unifi_host_state old_state = card->host_state;
func_enter();
r = unifi_identify_hw(card); r = unifi_identify_hw(card);
if (r == CSR_WIFI_HIP_RESULT_NO_DEVICE) if (r == CSR_WIFI_HIP_RESULT_NO_DEVICE)
{ {
...@@ -2625,8 +2583,6 @@ static CsrResult unifi_read_chip_version(card_t *card) ...@@ -2625,8 +2583,6 @@ static CsrResult unifi_read_chip_version(card_t *card)
CsrResult r; CsrResult r;
u16 ver; u16 ver;
func_enter();
gbl_chip_version = ChipHelper_GBL_CHIP_VERSION(card->helper); gbl_chip_version = ChipHelper_GBL_CHIP_VERSION(card->helper);
/* Try to read the chip version from register. */ /* Try to read the chip version from register. */
...@@ -2684,8 +2640,6 @@ static CsrResult unifi_reset_hardware(card_t *card) ...@@ -2684,8 +2640,6 @@ static CsrResult unifi_reset_hardware(card_t *card)
u16 new_block_size = UNIFI_IO_BLOCK_SIZE; u16 new_block_size = UNIFI_IO_BLOCK_SIZE;
CsrResult csrResult; CsrResult csrResult;
func_enter();
/* Errors returned by unifi_prepare_hw() are not critical at this point */ /* Errors returned by unifi_prepare_hw() are not critical at this point */
r = unifi_prepare_hw(card); r = unifi_prepare_hw(card);
if (r == CSR_WIFI_HIP_RESULT_NO_DEVICE) if (r == CSR_WIFI_HIP_RESULT_NO_DEVICE)
...@@ -2818,8 +2772,6 @@ static CsrResult card_reset_method_io_enable(card_t *card) ...@@ -2818,8 +2772,6 @@ static CsrResult card_reset_method_io_enable(card_t *card)
CsrResult r; CsrResult r;
CsrResult csrResult; CsrResult csrResult;
func_enter();
/* /*
* This resets only function 1, so should be used in * This resets only function 1, so should be used in
* preference to the method below (CSR_FUNC_EN) * preference to the method below (CSR_FUNC_EN)
...@@ -2915,8 +2867,6 @@ static CsrResult card_reset_method_dbg_reset(card_t *card) ...@@ -2915,8 +2867,6 @@ static CsrResult card_reset_method_dbg_reset(card_t *card)
{ {
CsrResult r; CsrResult r;
func_enter();
/* /*
* Prepare UniFi for h/w reset * Prepare UniFi for h/w reset
*/ */
...@@ -3008,8 +2958,6 @@ CsrResult unifi_card_hard_reset(card_t *card) ...@@ -3008,8 +2958,6 @@ CsrResult unifi_card_hard_reset(card_t *card)
const struct chip_helper_reset_values *init_data; const struct chip_helper_reset_values *init_data;
u32 chunks; u32 chunks;
func_enter();
/* Clear cache of page registers */ /* Clear cache of page registers */
card->proc_select = (u32)(-1); card->proc_select = (u32)(-1);
card->dmem_page = (u32)(-1); card->dmem_page = (u32)(-1);
...@@ -3097,8 +3045,6 @@ CsrResult CardGenInt(card_t *card) ...@@ -3097,8 +3045,6 @@ CsrResult CardGenInt(card_t *card)
{ {
CsrResult r; CsrResult r;
func_enter();
if (card->chip_id > SDIO_CARD_ID_UNIFI_2) if (card->chip_id > SDIO_CARD_ID_UNIFI_2)
{ {
r = sdio_write_f0(card, SDIO_CSR_FROM_HOST_SCRATCH0, r = sdio_write_f0(card, SDIO_CSR_FROM_HOST_SCRATCH0,
...@@ -3388,8 +3334,6 @@ CsrResult CardWriteBulkData(card_t *card, card_signal_t *csptr, unifi_TrafficQue ...@@ -3388,8 +3334,6 @@ CsrResult CardWriteBulkData(card_t *card, card_signal_t *csptr, unifi_TrafficQue
bulk_data_desc_t *bulkdata = csptr->bulkdata; bulk_data_desc_t *bulkdata = csptr->bulkdata;
s16 h, nslots; s16 h, nslots;
func_enter();
/* Count the number of slots required */ /* Count the number of slots required */
for (i = 0; i < UNIFI_MAX_DATA_REFERENCES; i++) for (i = 0; i < UNIFI_MAX_DATA_REFERENCES; i++)
{ {
......
...@@ -327,8 +327,6 @@ CsrResult unifi_dl_firmware(card_t *card, void *dlpriv) ...@@ -327,8 +327,6 @@ CsrResult unifi_dl_firmware(card_t *card, void *dlpriv)
xbv1_t *fwinfo; xbv1_t *fwinfo;
CsrResult r; CsrResult r;
func_enter();
fwinfo = kmalloc(sizeof(xbv1_t), GFP_KERNEL); fwinfo = kmalloc(sizeof(xbv1_t), GFP_KERNEL);
if (fwinfo == NULL) if (fwinfo == NULL)
{ {
...@@ -407,8 +405,6 @@ CsrResult unifi_dl_patch(card_t *card, void *dlpriv, u32 boot_ctrl) ...@@ -407,8 +405,6 @@ CsrResult unifi_dl_patch(card_t *card, void *dlpriv, u32 boot_ctrl)
xbv1_t *fwinfo; xbv1_t *fwinfo;
CsrResult r; CsrResult r;
func_enter();
unifi_info(card->ospriv, "unifi_dl_patch %p %08x\n", dlpriv, boot_ctrl); unifi_info(card->ospriv, "unifi_dl_patch %p %08x\n", dlpriv, boot_ctrl);
fwinfo = kmalloc(sizeof(xbv1_t), GFP_KERNEL); fwinfo = kmalloc(sizeof(xbv1_t), GFP_KERNEL);
......
...@@ -104,8 +104,6 @@ CsrResult unifi_coredump_request_at_next_reset(card_t *card, s8 enable) ...@@ -104,8 +104,6 @@ CsrResult unifi_coredump_request_at_next_reset(card_t *card, s8 enable)
{ {
CsrResult r; CsrResult r;
func_enter();
if (enable) if (enable)
{ {
unifi_trace(card->ospriv, UDBG2, "Mini-coredump requested after reset\n"); unifi_trace(card->ospriv, UDBG2, "Mini-coredump requested after reset\n");
...@@ -145,8 +143,6 @@ CsrResult unifi_coredump_handle_request(card_t *card) ...@@ -145,8 +143,6 @@ CsrResult unifi_coredump_handle_request(card_t *card)
{ {
CsrResult r = CSR_RESULT_SUCCESS; CsrResult r = CSR_RESULT_SUCCESS;
func_enter();
if (card == NULL) if (card == NULL)
{ {
r = CSR_WIFI_HIP_RESULT_INVALID_VALUE; r = CSR_WIFI_HIP_RESULT_INVALID_VALUE;
...@@ -194,8 +190,6 @@ CsrResult unifi_coredump_capture(card_t *card, struct unifi_coredump_req *req) ...@@ -194,8 +190,6 @@ CsrResult unifi_coredump_capture(card_t *card, struct unifi_coredump_req *req)
static u16 dump_seq_no = 1; static u16 dump_seq_no = 1;
u32 time_of_capture; u32 time_of_capture;
func_enter();
if (card->dump_next_write == NULL) if (card->dump_next_write == NULL)
{ {
r = CSR_RESULT_SUCCESS; r = CSR_RESULT_SUCCESS;
...@@ -358,8 +352,6 @@ CsrResult unifi_coredump_get_value(card_t *card, struct unifi_coredump_req *req) ...@@ -358,8 +352,6 @@ CsrResult unifi_coredump_get_value(card_t *card, struct unifi_coredump_req *req)
s32 i = 0; s32 i = 0;
coredump_buffer *find_dump = NULL; coredump_buffer *find_dump = NULL;
func_enter();
if (req == NULL || card == NULL) if (req == NULL || card == NULL)
{ {
r = CSR_WIFI_HIP_RESULT_INVALID_VALUE; r = CSR_WIFI_HIP_RESULT_INVALID_VALUE;
...@@ -481,8 +473,6 @@ static CsrResult unifi_coredump_read_zone(card_t *card, u16 *zonebuf, const stru ...@@ -481,8 +473,6 @@ static CsrResult unifi_coredump_read_zone(card_t *card, u16 *zonebuf, const stru
{ {
CsrResult r; CsrResult r;
func_enter();
if (zonebuf == NULL || def == NULL) if (zonebuf == NULL || def == NULL)
{ {
r = CSR_WIFI_HIP_RESULT_INVALID_VALUE; r = CSR_WIFI_HIP_RESULT_INVALID_VALUE;
...@@ -551,8 +541,6 @@ static CsrResult unifi_coredump_read_zones(card_t *card, coredump_buffer *dump_b ...@@ -551,8 +541,6 @@ static CsrResult unifi_coredump_read_zones(card_t *card, coredump_buffer *dump_b
CsrResult r = CSR_RESULT_SUCCESS; CsrResult r = CSR_RESULT_SUCCESS;
s32 i; s32 i;
func_enter();
/* Walk the table of coredump zone definitions and read them from the chip */ /* Walk the table of coredump zone definitions and read them from the chip */
for (i = 0; for (i = 0;
(i < HIP_CDUMP_NUM_ZONES) && (r == 0); (i < HIP_CDUMP_NUM_ZONES) && (r == 0);
...@@ -590,8 +578,6 @@ static CsrResult unifi_coredump_from_sdio(card_t *card, coredump_buffer *dump_bu ...@@ -590,8 +578,6 @@ static CsrResult unifi_coredump_from_sdio(card_t *card, coredump_buffer *dump_bu
CsrResult r; CsrResult r;
u32 sdio_addr; u32 sdio_addr;
func_enter();
if (dump_buf == NULL) if (dump_buf == NULL)
{ {
r = CSR_WIFI_HIP_RESULT_INVALID_VALUE; r = CSR_WIFI_HIP_RESULT_INVALID_VALUE;
...@@ -743,8 +729,6 @@ CsrResult unifi_coredump_init(card_t *card, u16 num_dump_buffers) ...@@ -743,8 +729,6 @@ CsrResult unifi_coredump_init(card_t *card, u16 num_dump_buffers)
u32 i = 0; u32 i = 0;
#endif #endif
func_enter();
card->request_coredump_on_reset = 0; card->request_coredump_on_reset = 0;
card->dump_next_write = NULL; card->dump_next_write = NULL;
card->dump_cur_read = NULL; card->dump_cur_read = NULL;
...@@ -826,7 +810,6 @@ void unifi_coredump_free(card_t *card) ...@@ -826,7 +810,6 @@ void unifi_coredump_free(card_t *card)
s16 i = 0; s16 i = 0;
s16 j; s16 j;
func_enter();
unifi_trace(ospriv, UDBG2, "Core dump de-configured\n"); unifi_trace(ospriv, UDBG2, "Core dump de-configured\n");
if (card->dump_buf == NULL) if (card->dump_buf == NULL)
......
...@@ -266,8 +266,6 @@ unifi_open(struct inode *inode, struct file *file) ...@@ -266,8 +266,6 @@ unifi_open(struct inode *inode, struct file *file)
unifi_priv_t *priv; unifi_priv_t *priv;
ul_client_t *udi_cli; ul_client_t *udi_cli;
func_enter();
devno = MINOR(inode->i_rdev) >> 1; devno = MINOR(inode->i_rdev) >> 1;
/* /*
...@@ -369,8 +367,6 @@ unifi_release(struct inode *inode, struct file *filp) ...@@ -369,8 +367,6 @@ unifi_release(struct inode *inode, struct file *filp)
int devno; int devno;
unifi_priv_t *priv; unifi_priv_t *priv;
func_enter();
priv = uf_find_instance(udi_cli->instance); priv = uf_find_instance(udi_cli->instance);
if (!priv) { if (!priv) {
unifi_error(priv, "unifi_close: instance for device not found\n"); unifi_error(priv, "unifi_close: instance for device not found\n");
...@@ -465,8 +461,6 @@ unifi_read(struct file *filp, char *p, size_t len, loff_t *poff) ...@@ -465,8 +461,6 @@ unifi_read(struct file *filp, char *p, size_t len, loff_t *poff)
struct list_head *l; struct list_head *l;
int msglen; int msglen;
func_enter();
priv = uf_find_instance(pcli->instance); priv = uf_find_instance(pcli->instance);
if (!priv) { if (!priv) {
unifi_error(priv, "invalid priv\n"); unifi_error(priv, "invalid priv\n");
...@@ -654,8 +648,6 @@ udi_send_signal_raw(unifi_priv_t *priv, unsigned char *buf, int buflen) ...@@ -654,8 +648,6 @@ udi_send_signal_raw(unifi_priv_t *priv, unsigned char *buf, int buflen)
int bytecount; int bytecount;
CsrResult csrResult; CsrResult csrResult;
func_enter();
/* /*
* The signal is the first thing in buf, the signal id is the * The signal is the first thing in buf, the signal id is the
* first 16 bits of the signal. * first 16 bits of the signal.
...@@ -784,8 +776,6 @@ unifi_write(struct file *filp, const char *p, size_t len, loff_t *poff) ...@@ -784,8 +776,6 @@ unifi_write(struct file *filp, const char *p, size_t len, loff_t *poff)
bulk_data_param_t bulkdata; bulk_data_param_t bulkdata;
CsrResult csrResult; CsrResult csrResult;
func_enter();
priv = uf_find_instance(pcli->instance); priv = uf_find_instance(pcli->instance);
if (!priv) { if (!priv) {
unifi_error(priv, "invalid priv\n"); unifi_error(priv, "invalid priv\n");
...@@ -1657,8 +1647,6 @@ unifi_poll(struct file *filp, poll_table *wait) ...@@ -1657,8 +1647,6 @@ unifi_poll(struct file *filp, poll_table *wait)
unsigned int mask = 0; unsigned int mask = 0;
int ready; int ready;
func_enter();
ready = !list_empty(&pcli->udi_log); ready = !list_empty(&pcli->udi_log);
poll_wait(filp, &pcli->udi_wq, wait); poll_wait(filp, &pcli->udi_wq, wait);
...@@ -1784,8 +1772,6 @@ udi_log_event(ul_client_t *pcli, ...@@ -1784,8 +1772,6 @@ udi_log_event(ul_client_t *pcli,
unsigned long n_1000; unsigned long n_1000;
#endif #endif
func_enter();
/* Just a sanity check */ /* Just a sanity check */
if ((signal == NULL) || (signal_len <= 0)) { if ((signal == NULL) || (signal_len <= 0)) {
return; return;
...@@ -1921,8 +1907,6 @@ uf_sme_queue_message(unifi_priv_t *priv, u8 *buffer, int length) ...@@ -1921,8 +1907,6 @@ uf_sme_queue_message(unifi_priv_t *priv, u8 *buffer, int length)
udi_msg_t *msgptr; udi_msg_t *msgptr;
u8 *p; u8 *p;
func_enter();
/* Just a sanity check */ /* Just a sanity check */
if ((buffer == NULL) || (length <= 0)) { if ((buffer == NULL) || (length <= 0)) {
return -EINVAL; return -EINVAL;
......
...@@ -62,8 +62,6 @@ unifi_fw_read_start(void *ospriv, s8 is_fw, const card_info_t *info) ...@@ -62,8 +62,6 @@ unifi_fw_read_start(void *ospriv, s8 is_fw, const card_info_t *info)
unifi_priv_t *priv = (unifi_priv_t*)ospriv; unifi_priv_t *priv = (unifi_priv_t*)ospriv;
CSR_UNUSED(info); CSR_UNUSED(info);
func_enter();
if (is_fw == UNIFI_FW_STA) { if (is_fw == UNIFI_FW_STA) {
/* F/w may have been released after a previous successful download. */ /* F/w may have been released after a previous successful download. */
if (priv->fw_sta.dl_data == NULL) { if (priv->fw_sta.dl_data == NULL) {
...@@ -105,7 +103,6 @@ unifi_fw_read_stop(void *ospriv, void *dlpriv) ...@@ -105,7 +103,6 @@ unifi_fw_read_stop(void *ospriv, void *dlpriv)
{ {
unifi_priv_t *priv = (unifi_priv_t*)ospriv; unifi_priv_t *priv = (unifi_priv_t*)ospriv;
struct dlpriv *dl_struct = (struct dlpriv *)dlpriv; struct dlpriv *dl_struct = (struct dlpriv *)dlpriv;
func_enter();
if (dl_struct != NULL) { if (dl_struct != NULL) {
if (dl_struct->dl_data != NULL) { if (dl_struct->dl_data != NULL) {
...@@ -143,7 +140,6 @@ void * ...@@ -143,7 +140,6 @@ void *
unifi_fw_open_buffer(void *ospriv, void *fwbuf, u32 len) unifi_fw_open_buffer(void *ospriv, void *fwbuf, u32 len)
{ {
unifi_priv_t *priv = (unifi_priv_t*)ospriv; unifi_priv_t *priv = (unifi_priv_t*)ospriv;
func_enter();
if (fwbuf == NULL) { if (fwbuf == NULL) {
func_exit(); func_exit();
......
...@@ -85,7 +85,6 @@ static int uf_read_proc(char *page, char **start, off_t offset, int count, ...@@ -85,7 +85,6 @@ static int uf_read_proc(char *page, char **start, off_t offset, int count,
static CsrResult signal_buffer_init(unifi_priv_t * priv, int size) static CsrResult signal_buffer_init(unifi_priv_t * priv, int size)
{ {
int i; int i;
func_enter();
priv->rxSignalBuffer.writePointer = priv->rxSignalBuffer.writePointer =
priv->rxSignalBuffer.readPointer = 0; priv->rxSignalBuffer.readPointer = 0;
...@@ -264,8 +263,6 @@ register_unifi_sdio(CsrSdioFunction *sdio_dev, int bus_id, struct device *dev) ...@@ -264,8 +263,6 @@ register_unifi_sdio(CsrSdioFunction *sdio_dev, int bus_id, struct device *dev)
int r = -1; int r = -1;
CsrResult csrResult; CsrResult csrResult;
func_enter();
if ((bus_id < 0) || (bus_id >= MAX_UNIFI_DEVS)) { if ((bus_id < 0) || (bus_id >= MAX_UNIFI_DEVS)) {
unifi_error(priv, "register_unifi_sdio: invalid device %d\n", unifi_error(priv, "register_unifi_sdio: invalid device %d\n",
bus_id); bus_id);
...@@ -472,7 +469,6 @@ if (log_hip_signals) ...@@ -472,7 +469,6 @@ if (log_hip_signals)
static void static void
ask_unifi_sdio_cleanup(unifi_priv_t *priv) ask_unifi_sdio_cleanup(unifi_priv_t *priv)
{ {
func_enter();
/* /*
* Now clear the flag that says the old instance is in use. * Now clear the flag that says the old instance is in use.
...@@ -510,8 +506,6 @@ cleanup_unifi_sdio(unifi_priv_t *priv) ...@@ -510,8 +506,6 @@ cleanup_unifi_sdio(unifi_priv_t *priv)
int i; int i;
static const CsrWifiMacAddress broadcast_address = {{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}}; static const CsrWifiMacAddress broadcast_address = {{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}};
func_enter();
/* Remove the device nodes */ /* Remove the device nodes */
uf_destroy_device_nodes(priv); uf_destroy_device_nodes(priv);
......
...@@ -154,8 +154,6 @@ unifi_mlme_blocking_request(unifi_priv_t *priv, ul_client_t *pcli, ...@@ -154,8 +154,6 @@ unifi_mlme_blocking_request(unifi_priv_t *priv, ul_client_t *pcli,
{ {
int r; int r;
func_enter();
if (sig->SignalPrimitiveHeader.SignalId == 0) { if (sig->SignalPrimitiveHeader.SignalId == 0) {
unifi_error(priv, "unifi_mlme_blocking_request: Invalid Signal Id (0x%x)\n", unifi_error(priv, "unifi_mlme_blocking_request: Invalid Signal Id (0x%x)\n",
sig->SignalPrimitiveHeader.SignalId); sig->SignalPrimitiveHeader.SignalId);
......
...@@ -121,8 +121,6 @@ netrx_radiotap(unifi_priv_t *priv, ...@@ -121,8 +121,6 @@ netrx_radiotap(unifi_priv_t *priv,
struct unifi_rx_radiotap_header *unifi_rt; struct unifi_rx_radiotap_header *unifi_rt;
int signal, noise, snr; int signal, noise, snr;
func_enter();
if (ind_data_len <= 0) { if (ind_data_len <= 0) {
unifi_error(priv, "Invalid length in CSR_MA_SNIFFDATA_INDICATION.\n"); unifi_error(priv, "Invalid length in CSR_MA_SNIFFDATA_INDICATION.\n");
return; return;
...@@ -255,8 +253,6 @@ netrx_prism(unifi_priv_t *priv, ...@@ -255,8 +253,6 @@ netrx_prism(unifi_priv_t *priv,
} *avs; } *avs;
int signal, noise, snr; int signal, noise, snr;
func_enter();
if (ind_data_len <= 0) { if (ind_data_len <= 0) {
unifi_error(priv, "Invalid length in CSR_MA_SNIFFDATA_INDICATION.\n"); unifi_error(priv, "Invalid length in CSR_MA_SNIFFDATA_INDICATION.\n");
return; return;
...@@ -350,8 +346,6 @@ ma_sniffdata_ind(void *ospriv, ...@@ -350,8 +346,6 @@ ma_sniffdata_ind(void *ospriv,
struct net_device *dev = priv->netdev; struct net_device *dev = priv->netdev;
struct sk_buff *skb = (struct sk_buff*)bulkdata->d[0].os_net_buf_ptr; struct sk_buff *skb = (struct sk_buff*)bulkdata->d[0].os_net_buf_ptr;
func_enter();
if (bulkdata->d[0].data_length == 0) { if (bulkdata->d[0].data_length == 0) {
unifi_warning(priv, "rx: MA-SNIFFDATA indication with zero bulk data\n"); unifi_warning(priv, "rx: MA-SNIFFDATA indication with zero bulk data\n");
func_exit(); func_exit();
......
...@@ -477,8 +477,6 @@ uf_free_netdevice(unifi_priv_t *priv) ...@@ -477,8 +477,6 @@ uf_free_netdevice(unifi_priv_t *priv)
int i; int i;
unsigned long flags; unsigned long flags;
func_enter();
unifi_trace(priv, UDBG1, "uf_free_netdevice\n"); unifi_trace(priv, UDBG1, "uf_free_netdevice\n");
if (!priv) { if (!priv) {
...@@ -577,8 +575,6 @@ uf_net_open(struct net_device *dev) ...@@ -577,8 +575,6 @@ uf_net_open(struct net_device *dev)
netInterface_priv_t *interfacePriv = (netInterface_priv_t *)netdev_priv(dev); netInterface_priv_t *interfacePriv = (netInterface_priv_t *)netdev_priv(dev);
unifi_priv_t *priv = interfacePriv->privPtr; unifi_priv_t *priv = interfacePriv->privPtr;
func_enter();
/* If we haven't finished UniFi initialisation, we can't start */ /* If we haven't finished UniFi initialisation, we can't start */
if (priv->init_progress != UNIFI_INIT_COMPLETED) { if (priv->init_progress != UNIFI_INIT_COMPLETED) {
unifi_warning(priv, "%s: unifi not ready, failing net_open\n", __FUNCTION__); unifi_warning(priv, "%s: unifi not ready, failing net_open\n", __FUNCTION__);
...@@ -626,8 +622,6 @@ uf_net_stop(struct net_device *dev) ...@@ -626,8 +622,6 @@ uf_net_stop(struct net_device *dev)
netInterface_priv_t *interfacePriv = (netInterface_priv_t*)netdev_priv(dev); netInterface_priv_t *interfacePriv = (netInterface_priv_t*)netdev_priv(dev);
unifi_priv_t *priv = interfacePriv->privPtr; unifi_priv_t *priv = interfacePriv->privPtr;
func_enter();
/* Stop sniffing if in Monitor mode */ /* Stop sniffing if in Monitor mode */
if (priv->wext_conf.mode == IW_MODE_MONITOR) { if (priv->wext_conf.mode == IW_MODE_MONITOR) {
if (priv->card) { if (priv->card) {
...@@ -638,8 +632,6 @@ uf_net_stop(struct net_device *dev) ...@@ -638,8 +632,6 @@ uf_net_stop(struct net_device *dev)
} }
} }
} }
#else
func_enter();
#endif #endif
netif_tx_stop_all_queues(dev); netif_tx_stop_all_queues(dev);
...@@ -674,7 +666,6 @@ static CSR_PRIORITY uf_get_packet_priority(unifi_priv_t *priv, netInterface_priv ...@@ -674,7 +666,6 @@ static CSR_PRIORITY uf_get_packet_priority(unifi_priv_t *priv, netInterface_priv
{ {
CSR_PRIORITY priority = CSR_CONTENTION; CSR_PRIORITY priority = CSR_CONTENTION;
func_enter();
priority = (CSR_PRIORITY) (skb->priority >> 5); priority = (CSR_PRIORITY) (skb->priority >> 5);
if (priority == CSR_QOS_UP0) { /* 0 */ if (priority == CSR_QOS_UP0) { /* 0 */
...@@ -749,8 +740,6 @@ get_packet_priority(unifi_priv_t *priv, struct sk_buff *skb, const struct ethhdr ...@@ -749,8 +740,6 @@ get_packet_priority(unifi_priv_t *priv, struct sk_buff *skb, const struct ethhdr
u8 interfaceMode = interfacePriv->interfaceMode; u8 interfaceMode = interfacePriv->interfaceMode;
func_enter();
/* Priority Mapping for all the Modes */ /* Priority Mapping for all the Modes */
switch(interfaceMode) switch(interfaceMode)
{ {
...@@ -815,8 +804,6 @@ uf_net_select_queue(struct net_device *dev, struct sk_buff *skb) ...@@ -815,8 +804,6 @@ uf_net_select_queue(struct net_device *dev, struct sk_buff *skb)
int proto; int proto;
CSR_PRIORITY priority; CSR_PRIORITY priority;
func_enter();
memcpy(&ehdr, skb->data, ETH_HLEN); memcpy(&ehdr, skb->data, ETH_HLEN);
proto = ntohs(ehdr.h_proto); proto = ntohs(ehdr.h_proto);
...@@ -1759,8 +1746,6 @@ uf_net_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -1759,8 +1746,6 @@ uf_net_xmit(struct sk_buff *skb, struct net_device *dev)
CSR_PRIORITY priority; CSR_PRIORITY priority;
CsrWifiRouterCtrlPortAction port_action; CsrWifiRouterCtrlPortAction port_action;
func_enter();
unifi_trace(priv, UDBG5, "unifi_net_xmit: skb = %x\n", skb); unifi_trace(priv, UDBG5, "unifi_net_xmit: skb = %x\n", skb);
memcpy(&ehdr, skb->data, ETH_HLEN); memcpy(&ehdr, skb->data, ETH_HLEN);
...@@ -1876,7 +1861,6 @@ unifi_pause_xmit(void *ospriv, unifi_TrafficQueue queue) ...@@ -1876,7 +1861,6 @@ unifi_pause_xmit(void *ospriv, unifi_TrafficQueue queue)
unifi_priv_t *priv = ospriv; unifi_priv_t *priv = ospriv;
int i; /* used as a loop counter */ int i; /* used as a loop counter */
func_enter();
unifi_trace(priv, UDBG2, "Stopping queue %d\n", queue); unifi_trace(priv, UDBG2, "Stopping queue %d\n", queue);
for(i=0;i<CSR_WIFI_NUM_INTERFACES;i++) for(i=0;i<CSR_WIFI_NUM_INTERFACES;i++)
...@@ -1906,7 +1890,6 @@ unifi_restart_xmit(void *ospriv, unifi_TrafficQueue queue) ...@@ -1906,7 +1890,6 @@ unifi_restart_xmit(void *ospriv, unifi_TrafficQueue queue)
unifi_priv_t *priv = ospriv; unifi_priv_t *priv = ospriv;
int i=0; /* used as a loop counter */ int i=0; /* used as a loop counter */
func_enter();
unifi_trace(priv, UDBG2, "Waking queue %d\n", queue); unifi_trace(priv, UDBG2, "Waking queue %d\n", queue);
for(i=0;i<CSR_WIFI_NUM_INTERFACES;i++) for(i=0;i<CSR_WIFI_NUM_INTERFACES;i++)
...@@ -2177,8 +2160,6 @@ unifi_rx(unifi_priv_t *priv, CSR_SIGNAL *signal, bulk_data_param_t *bulkdata) ...@@ -2177,8 +2160,6 @@ unifi_rx(unifi_priv_t *priv, CSR_SIGNAL *signal, bulk_data_param_t *bulkdata)
netInterface_priv_t *interfacePriv; netInterface_priv_t *interfacePriv;
struct ethhdr ehdr; struct ethhdr ehdr;
func_enter();
interfaceTag = (pkt_ind->VirtualInterfaceIdentifier & 0xff); interfaceTag = (pkt_ind->VirtualInterfaceIdentifier & 0xff);
interfacePriv = priv->interfacePriv[interfaceTag]; interfacePriv = priv->interfacePriv[interfaceTag];
...@@ -2455,7 +2436,6 @@ static void process_ma_packet_cfm(unifi_priv_t *priv, CSR_SIGNAL *signal, bulk_d ...@@ -2455,7 +2436,6 @@ static void process_ma_packet_cfm(unifi_priv_t *priv, CSR_SIGNAL *signal, bulk_d
const CSR_MA_PACKET_CONFIRM *pkt_cfm = &signal->u.MaPacketConfirm; const CSR_MA_PACKET_CONFIRM *pkt_cfm = &signal->u.MaPacketConfirm;
netInterface_priv_t *interfacePriv; netInterface_priv_t *interfacePriv;
func_enter();
interfaceTag = (pkt_cfm->VirtualInterfaceIdentifier & 0xff); interfaceTag = (pkt_cfm->VirtualInterfaceIdentifier & 0xff);
interfacePriv = priv->interfacePriv[interfaceTag]; interfacePriv = priv->interfacePriv[interfaceTag];
...@@ -2527,8 +2507,6 @@ static void process_ma_packet_ind(unifi_priv_t *priv, CSR_SIGNAL *signal, bulk_d ...@@ -2527,8 +2507,6 @@ static void process_ma_packet_ind(unifi_priv_t *priv, CSR_SIGNAL *signal, bulk_d
#endif #endif
func_enter();
interfaceTag = (pkt_ind->VirtualInterfaceIdentifier & 0xff); interfaceTag = (pkt_ind->VirtualInterfaceIdentifier & 0xff);
interfacePriv = priv->interfacePriv[interfaceTag]; interfacePriv = priv->interfacePriv[interfaceTag];
...@@ -2835,8 +2813,6 @@ netdev_mlme_event_handler(ul_client_t *pcli, const u8 *sig_packed, int sig_len, ...@@ -2835,8 +2813,6 @@ netdev_mlme_event_handler(ul_client_t *pcli, const u8 *sig_packed, int sig_len,
int id, r; int id, r;
bulk_data_param_t bulkdata; bulk_data_param_t bulkdata;
func_enter();
/* Just a sanity check */ /* Just a sanity check */
if (sig_packed == NULL) { if (sig_packed == NULL) {
return; return;
...@@ -3330,8 +3306,6 @@ static void process_ma_packet_error_ind(unifi_priv_t *priv, CSR_SIGNAL *signal, ...@@ -3330,8 +3306,6 @@ static void process_ma_packet_error_ind(unifi_priv_t *priv, CSR_SIGNAL *signal,
CSR_PRIORITY UserPriority; CSR_PRIORITY UserPriority;
CSR_SEQUENCE_NUMBER sn; CSR_SEQUENCE_NUMBER sn;
func_enter();
interfaceTag = (pkt_err_ind->VirtualInterfaceIdentifier & 0xff); interfaceTag = (pkt_err_ind->VirtualInterfaceIdentifier & 0xff);
......
...@@ -540,8 +540,6 @@ CsrSdioFunctionEnable(CsrSdioFunction *function) ...@@ -540,8 +540,6 @@ CsrSdioFunctionEnable(CsrSdioFunction *function)
struct sdio_func *func = (struct sdio_func *)function->priv; struct sdio_func *func = (struct sdio_func *)function->priv;
int err; int err;
func_enter();
/* Enable UniFi function 1 (the 802.11 part). */ /* Enable UniFi function 1 (the 802.11 part). */
_sdio_claim_host(func); _sdio_claim_host(func);
err = sdio_enable_func(func); err = sdio_enable_func(func);
...@@ -574,8 +572,6 @@ CsrSdioFunctionDisable(CsrSdioFunction *function) ...@@ -574,8 +572,6 @@ CsrSdioFunctionDisable(CsrSdioFunction *function)
struct sdio_func *func = (struct sdio_func *)function->priv; struct sdio_func *func = (struct sdio_func *)function->priv;
int err; int err;
func_enter();
/* Disable UniFi function 1 (the 802.11 part). */ /* Disable UniFi function 1 (the 802.11 part). */
_sdio_claim_host(func); _sdio_claim_host(func);
err = sdio_disable_func(func); err = sdio_disable_func(func);
...@@ -1033,8 +1029,6 @@ uf_glue_sdio_probe(struct sdio_func *func, ...@@ -1033,8 +1029,6 @@ uf_glue_sdio_probe(struct sdio_func *func,
int instance; int instance;
CsrSdioFunction *sdio_ctx; CsrSdioFunction *sdio_ctx;
func_enter();
/* First of all claim the SDIO driver */ /* First of all claim the SDIO driver */
sdio_claim_host(func); sdio_claim_host(func);
...@@ -1130,8 +1124,6 @@ uf_glue_sdio_remove(struct sdio_func *func) ...@@ -1130,8 +1124,6 @@ uf_glue_sdio_remove(struct sdio_func *func)
return; return;
} }
func_enter();
unifi_info(NULL, "UniFi card removed\n"); unifi_info(NULL, "UniFi card removed\n");
/* Clean up the SDIO function driver */ /* Clean up the SDIO function driver */
...@@ -1182,8 +1174,6 @@ MODULE_DEVICE_TABLE(sdio, unifi_ids); ...@@ -1182,8 +1174,6 @@ MODULE_DEVICE_TABLE(sdio, unifi_ids);
static int static int
uf_glue_sdio_suspend(struct device *dev) uf_glue_sdio_suspend(struct device *dev)
{ {
func_enter();
unifi_trace(NULL, UDBG1, "uf_glue_sdio_suspend"); unifi_trace(NULL, UDBG1, "uf_glue_sdio_suspend");
func_exit(); func_exit();
...@@ -1207,8 +1197,6 @@ uf_glue_sdio_suspend(struct device *dev) ...@@ -1207,8 +1197,6 @@ uf_glue_sdio_suspend(struct device *dev)
static int static int
uf_glue_sdio_resume(struct device *dev) uf_glue_sdio_resume(struct device *dev)
{ {
func_enter();
unifi_trace(NULL, UDBG1, "uf_glue_sdio_resume"); unifi_trace(NULL, UDBG1, "uf_glue_sdio_resume");
#ifdef ANDROID_BUILD #ifdef ANDROID_BUILD
......
...@@ -21,8 +21,6 @@ static const unsigned char wildcard_address[ETH_ALEN] = {0x00, 0x00, 0x00, 0x00, ...@@ -21,8 +21,6 @@ static const unsigned char wildcard_address[ETH_ALEN] = {0x00, 0x00, 0x00, 0x00,
int int
uf_sme_init(unifi_priv_t *priv) uf_sme_init(unifi_priv_t *priv)
{ {
func_enter();
sema_init(&priv->mlme_blocking_mutex, 1); sema_init(&priv->mlme_blocking_mutex, 1);
#ifdef CSR_SUPPORT_WEXT #ifdef CSR_SUPPORT_WEXT
...@@ -46,8 +44,6 @@ void ...@@ -46,8 +44,6 @@ void
uf_sme_deinit(unifi_priv_t *priv) uf_sme_deinit(unifi_priv_t *priv)
{ {
func_enter();
/* Free memory allocated for the scan table */ /* Free memory allocated for the scan table */
/* unifi_clear_scan_table(priv); */ /* unifi_clear_scan_table(priv); */
...@@ -221,8 +217,6 @@ sme_native_log_event(ul_client_t *pcli, ...@@ -221,8 +217,6 @@ sme_native_log_event(ul_client_t *pcli,
CSR_SIGNAL signal; CSR_SIGNAL signal;
ul_client_t *client = pcli; ul_client_t *client = pcli;
func_enter();
if (client == NULL) { if (client == NULL) {
unifi_error(NULL, "sme_native_log_event: client has exited\n"); unifi_error(NULL, "sme_native_log_event: client has exited\n");
return; return;
...@@ -460,8 +454,6 @@ sme_native_mlme_event_handler(ul_client_t *pcli, ...@@ -460,8 +454,6 @@ sme_native_mlme_event_handler(ul_client_t *pcli,
unifi_priv_t *priv = uf_find_instance(pcli->instance); unifi_priv_t *priv = uf_find_instance(pcli->instance);
int id, r; int id, r;
func_enter();
/* Just a sanity check */ /* Just a sanity check */
if ((sig_packed == NULL) || (sig_len <= 0)) { if ((sig_packed == NULL) || (sig_len <= 0)) {
return; return;
...@@ -573,8 +565,6 @@ unifi_reset_state(unifi_priv_t *priv, unsigned char *macaddr, ...@@ -573,8 +565,6 @@ unifi_reset_state(unifi_priv_t *priv, unsigned char *macaddr,
{ {
int r = 0; int r = 0;
func_enter();
#ifdef CSR_SUPPORT_WEXT #ifdef CSR_SUPPORT_WEXT
/* The reset clears any 802.11 association. */ /* The reset clears any 802.11 association. */
priv->wext_conf.flag_associated = 0; priv->wext_conf.flag_associated = 0;
......
...@@ -412,8 +412,6 @@ uf_send_gratuitous_arp(unifi_priv_t *priv, u16 interfaceTag) ...@@ -412,8 +412,6 @@ uf_send_gratuitous_arp(unifi_priv_t *priv, u16 interfaceTag)
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xc0, 0xa8, 0x00, 0x02}; 0xc0, 0xa8, 0x00, 0x02};
func_enter();
csrResult = unifi_net_data_malloc(priv, &bulkdata.d[0], sizeof(arp_req)); csrResult = unifi_net_data_malloc(priv, &bulkdata.d[0], sizeof(arp_req));
if (csrResult != CSR_RESULT_SUCCESS) if (csrResult != CSR_RESULT_SUCCESS)
{ {
...@@ -2410,8 +2408,6 @@ void uf_send_disconnected_ind_wq(struct work_struct *work) ...@@ -2410,8 +2408,6 @@ void uf_send_disconnected_ind_wq(struct work_struct *work)
struct list_head send_cfm_list; struct list_head send_cfm_list;
u8 j; u8 j;
func_enter();
if(!staInfo) { if(!staInfo) {
return; return;
} }
......
...@@ -800,7 +800,6 @@ iwprivsconfwapi(struct net_device *dev, struct iw_request_info *info, ...@@ -800,7 +800,6 @@ iwprivsconfwapi(struct net_device *dev, struct iw_request_info *info,
u8 enable; u8 enable;
netInterface_priv_t *interfacePriv = (netInterface_priv_t *)netdev_priv(dev); netInterface_priv_t *interfacePriv = (netInterface_priv_t *)netdev_priv(dev);
unifi_priv_t *priv = interfacePriv->privPtr; unifi_priv_t *priv = interfacePriv->privPtr;
func_enter();
unifi_trace(priv, UDBG1, "iwprivsconfwapi\n" ); unifi_trace(priv, UDBG1, "iwprivsconfwapi\n" );
...@@ -837,7 +836,6 @@ iwprivswpikey(struct net_device *dev, struct iw_request_info *info, ...@@ -837,7 +836,6 @@ iwprivswpikey(struct net_device *dev, struct iw_request_info *info,
unifiio_wapi_key_t inKey; unifiio_wapi_key_t inKey;
netInterface_priv_t *interfacePriv = (netInterface_priv_t *)netdev_priv(dev); netInterface_priv_t *interfacePriv = (netInterface_priv_t *)netdev_priv(dev);
unifi_priv_t *priv = interfacePriv->privPtr; unifi_priv_t *priv = interfacePriv->privPtr;
func_enter();
unifi_trace(priv, UDBG1, "iwprivswpikey\n" ); unifi_trace(priv, UDBG1, "iwprivswpikey\n" );
...@@ -914,7 +912,6 @@ unifi_siwfreq(struct net_device *dev, struct iw_request_info *info, ...@@ -914,7 +912,6 @@ unifi_siwfreq(struct net_device *dev, struct iw_request_info *info,
unifi_priv_t *priv = interfacePriv->privPtr; unifi_priv_t *priv = interfacePriv->privPtr;
struct iw_freq *freq = (struct iw_freq *)wrqu; struct iw_freq *freq = (struct iw_freq *)wrqu;
func_enter();
unifi_trace(priv, UDBG2, "unifi_siwfreq\n"); unifi_trace(priv, UDBG2, "unifi_siwfreq\n");
if(interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_AP || if(interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_AP ||
...@@ -950,7 +947,6 @@ unifi_giwfreq(struct net_device *dev, struct iw_request_info *info, ...@@ -950,7 +947,6 @@ unifi_giwfreq(struct net_device *dev, struct iw_request_info *info,
int err = 0; int err = 0;
CsrWifiSmeConnectionInfo connectionInfo; CsrWifiSmeConnectionInfo connectionInfo;
func_enter();
unifi_trace(priv, UDBG2, "unifi_giwfreq\n"); unifi_trace(priv, UDBG2, "unifi_giwfreq\n");
CHECK_INITED(priv); CHECK_INITED(priv);
...@@ -982,7 +978,6 @@ unifi_siwmode(struct net_device *dev, struct iw_request_info *info, ...@@ -982,7 +978,6 @@ unifi_siwmode(struct net_device *dev, struct iw_request_info *info,
netInterface_priv_t *interfacePriv = (netInterface_priv_t *)netdev_priv(dev); netInterface_priv_t *interfacePriv = (netInterface_priv_t *)netdev_priv(dev);
unifi_priv_t *priv = interfacePriv->privPtr; unifi_priv_t *priv = interfacePriv->privPtr;
func_enter();
unifi_trace(priv, UDBG2, "unifi_siwmode\n"); unifi_trace(priv, UDBG2, "unifi_siwmode\n");
if(interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_AP || if(interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_AP ||
...@@ -1026,7 +1021,6 @@ unifi_giwmode(struct net_device *dev, struct iw_request_info *info, ...@@ -1026,7 +1021,6 @@ unifi_giwmode(struct net_device *dev, struct iw_request_info *info,
unifi_priv_t *priv = interfacePriv->privPtr; unifi_priv_t *priv = interfacePriv->privPtr;
CsrWifiSmeConnectionConfig connectionConfig; CsrWifiSmeConnectionConfig connectionConfig;
func_enter();
unifi_trace(priv, UDBG2, "unifi_giwmode\n"); unifi_trace(priv, UDBG2, "unifi_giwmode\n");
CHECK_INITED(priv); CHECK_INITED(priv);
...@@ -1192,8 +1186,6 @@ unifi_siwap(struct net_device *dev, struct iw_request_info *info, ...@@ -1192,8 +1186,6 @@ unifi_siwap(struct net_device *dev, struct iw_request_info *info,
unifi_priv_t *priv = interfacePriv->privPtr; unifi_priv_t *priv = interfacePriv->privPtr;
int err = 0; int err = 0;
func_enter();
CHECK_INITED(priv); CHECK_INITED(priv);
if(interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_AP || if(interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_AP ||
...@@ -1255,8 +1247,6 @@ unifi_giwap(struct net_device *dev, struct iw_request_info *info, ...@@ -1255,8 +1247,6 @@ unifi_giwap(struct net_device *dev, struct iw_request_info *info,
int r = 0; int r = 0;
u8 *bssid; u8 *bssid;
func_enter();
CHECK_INITED(priv); CHECK_INITED(priv);
unifi_trace(priv, UDBG2, "unifi_giwap\n"); unifi_trace(priv, UDBG2, "unifi_giwap\n");
...@@ -1302,8 +1292,6 @@ unifi_siwscan(struct net_device *dev, struct iw_request_info *info, ...@@ -1302,8 +1292,6 @@ unifi_siwscan(struct net_device *dev, struct iw_request_info *info,
struct iw_scan_req *req = (struct iw_scan_req *) extra; struct iw_scan_req *req = (struct iw_scan_req *) extra;
#endif #endif
func_enter();
CHECK_INITED(priv); CHECK_INITED(priv);
if(interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_AP || if(interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_AP ||
...@@ -1707,7 +1695,6 @@ unifi_siwessid(struct net_device *dev, struct iw_request_info *info, ...@@ -1707,7 +1695,6 @@ unifi_siwessid(struct net_device *dev, struct iw_request_info *info,
int len; int len;
int err = 0; int err = 0;
func_enter();
CHECK_INITED(priv); CHECK_INITED(priv);
if(interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_AP || if(interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_AP ||
...@@ -1779,7 +1766,6 @@ unifi_giwessid(struct net_device *dev, struct iw_request_info *info, ...@@ -1779,7 +1766,6 @@ unifi_giwessid(struct net_device *dev, struct iw_request_info *info,
CsrWifiSmeConnectionInfo connectionInfo; CsrWifiSmeConnectionInfo connectionInfo;
int r = 0; int r = 0;
func_enter();
unifi_trace(priv, UDBG2, "unifi_giwessid\n"); unifi_trace(priv, UDBG2, "unifi_giwessid\n");
CHECK_INITED(priv); CHECK_INITED(priv);
...@@ -1821,8 +1807,6 @@ unifi_siwrate(struct net_device *dev, struct iw_request_info *info, ...@@ -1821,8 +1807,6 @@ unifi_siwrate(struct net_device *dev, struct iw_request_info *info,
CsrWifiSmeMibConfig mibConfig; CsrWifiSmeMibConfig mibConfig;
int r; int r;
func_enter();
CHECK_INITED(priv); CHECK_INITED(priv);
unifi_trace(priv, UDBG2, "unifi_siwrate\n"); unifi_trace(priv, UDBG2, "unifi_siwrate\n");
...@@ -1882,7 +1866,6 @@ unifi_giwrate(struct net_device *dev, struct iw_request_info *info, ...@@ -1882,7 +1866,6 @@ unifi_giwrate(struct net_device *dev, struct iw_request_info *info,
CsrWifiSmeMibConfig mibConfig; CsrWifiSmeMibConfig mibConfig;
CsrWifiSmeConnectionStats connectionStats; CsrWifiSmeConnectionStats connectionStats;
func_enter();
unifi_trace(priv, UDBG2, "unifi_giwrate\n"); unifi_trace(priv, UDBG2, "unifi_giwrate\n");
CHECK_INITED(priv); CHECK_INITED(priv);
...@@ -2081,7 +2064,6 @@ unifi_siwencode(struct net_device *dev, struct iw_request_info *info, ...@@ -2081,7 +2064,6 @@ unifi_siwencode(struct net_device *dev, struct iw_request_info *info,
int privacy = -1; int privacy = -1;
CsrWifiSmeKey sme_key; CsrWifiSmeKey sme_key;
func_enter();
unifi_trace(priv, UDBG2, "unifi_siwencode\n"); unifi_trace(priv, UDBG2, "unifi_siwencode\n");
CHECK_INITED(priv); CHECK_INITED(priv);
...@@ -2467,7 +2449,6 @@ unifi_siwmlme(struct net_device *dev, struct iw_request_info *info, ...@@ -2467,7 +2449,6 @@ unifi_siwmlme(struct net_device *dev, struct iw_request_info *info,
netInterface_priv_t *interfacePriv = (netInterface_priv_t *)netdev_priv(dev); netInterface_priv_t *interfacePriv = (netInterface_priv_t *)netdev_priv(dev);
unifi_priv_t *priv = interfacePriv->privPtr; unifi_priv_t *priv = interfacePriv->privPtr;
struct iw_mlme *mlme = (struct iw_mlme *)extra; struct iw_mlme *mlme = (struct iw_mlme *)extra;
func_enter();
unifi_trace(priv, UDBG2, "unifi_siwmlme\n"); unifi_trace(priv, UDBG2, "unifi_siwmlme\n");
CHECK_INITED(priv); CHECK_INITED(priv);
...@@ -2529,7 +2510,6 @@ unifi_siwgenie(struct net_device *dev, struct iw_request_info *info, ...@@ -2529,7 +2510,6 @@ unifi_siwgenie(struct net_device *dev, struct iw_request_info *info,
unifi_priv_t *priv = interfacePriv->privPtr; unifi_priv_t *priv = interfacePriv->privPtr;
int len; int len;
func_enter();
unifi_trace(priv, UDBG2, "unifi_siwgenie\n"); unifi_trace(priv, UDBG2, "unifi_siwgenie\n");
if(interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_AP || if(interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_AP ||
...@@ -2574,7 +2554,6 @@ unifi_giwgenie(struct net_device *dev, struct iw_request_info *info, ...@@ -2574,7 +2554,6 @@ unifi_giwgenie(struct net_device *dev, struct iw_request_info *info,
unifi_priv_t *priv = interfacePriv->privPtr; unifi_priv_t *priv = interfacePriv->privPtr;
int len; int len;
func_enter();
unifi_trace(priv, UDBG2, "unifi_giwgenie\n"); unifi_trace(priv, UDBG2, "unifi_giwgenie\n");
if(interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_AP || if(interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_AP ||
...@@ -2627,7 +2606,6 @@ _unifi_siwauth(struct net_device *dev, struct iw_request_info *info, ...@@ -2627,7 +2606,6 @@ _unifi_siwauth(struct net_device *dev, struct iw_request_info *info,
unifi_priv_t *priv = interfacePriv->privPtr; unifi_priv_t *priv = interfacePriv->privPtr;
CsrWifiSmeAuthModeMask new_auth; CsrWifiSmeAuthModeMask new_auth;
func_enter();
unifi_trace(priv, UDBG2, "unifi_siwauth\n"); unifi_trace(priv, UDBG2, "unifi_siwauth\n");
if(interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_AP || if(interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_AP ||
...@@ -2911,8 +2889,6 @@ _unifi_siwencodeext(struct net_device *dev, struct iw_request_info *info, ...@@ -2911,8 +2889,6 @@ _unifi_siwencodeext(struct net_device *dev, struct iw_request_info *info,
CsrWifiSmeKey sme_key; CsrWifiSmeKey sme_key;
CsrWifiSmeKeyType key_type; CsrWifiSmeKeyType key_type;
func_enter();
CHECK_INITED(priv); CHECK_INITED(priv);
if(interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_AP || if(interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_AP ||
......
...@@ -376,8 +376,6 @@ unifi_process_receive_event(void *ospriv, ...@@ -376,8 +376,6 @@ unifi_process_receive_event(void *ospriv,
s16 signal_id; s16 signal_id;
u8 pktIndToSme = FALSE, freeBulkData = FALSE; u8 pktIndToSme = FALSE, freeBulkData = FALSE;
func_enter();
unifi_trace(priv, UDBG5, "unifi_process_receive_event: " unifi_trace(priv, UDBG5, "unifi_process_receive_event: "
"%04x %04x %04x %04x %04x %04x %04x %04x (%d)\n", "%04x %04x %04x %04x %04x %04x %04x %04x (%d)\n",
CSR_GET_UINT16_FROM_LITTLE_ENDIAN((sigdata) + sizeof(s16)*0) & 0xFFFF, CSR_GET_UINT16_FROM_LITTLE_ENDIAN((sigdata) + sizeof(s16)*0) & 0xFFFF,
...@@ -587,7 +585,6 @@ void unifi_rx_queue_flush(void *ospriv) ...@@ -587,7 +585,6 @@ void unifi_rx_queue_flush(void *ospriv)
{ {
unifi_priv_t *priv = (unifi_priv_t*)ospriv; unifi_priv_t *priv = (unifi_priv_t*)ospriv;
func_enter();
unifi_trace(priv, UDBG4, "rx_wq_handler: RdPtr = %d WritePtr = %d\n", unifi_trace(priv, UDBG4, "rx_wq_handler: RdPtr = %d WritePtr = %d\n",
priv->rxSignalBuffer.readPointer,priv->rxSignalBuffer.writePointer); priv->rxSignalBuffer.readPointer,priv->rxSignalBuffer.writePointer);
if(priv != NULL) { if(priv != NULL) {
...@@ -655,7 +652,6 @@ unifi_receive_event(void *ospriv, ...@@ -655,7 +652,6 @@ unifi_receive_event(void *ospriv,
u8 writePointer; u8 writePointer;
int i; int i;
rx_buff_struct_t * rx_buff; rx_buff_struct_t * rx_buff;
func_enter();
unifi_trace(priv, UDBG5, "unifi_receive_event: " unifi_trace(priv, UDBG5, "unifi_receive_event: "
"%04x %04x %04x %04x %04x %04x %04x %04x (%d)\n", "%04x %04x %04x %04x %04x %04x %04x %04x (%d)\n",
......
...@@ -61,12 +61,6 @@ extern int unifi_debug; ...@@ -61,12 +61,6 @@ extern int unifi_debug;
* etc. * etc.
*/ */
#define func_enter() \
do { \
if (unifi_debug >= 5) { \
printk("unifi: => %s\n", __FUNCTION__); \
} \
} while (0)
#define func_exit() \ #define func_exit() \
do { \ do { \
if (unifi_debug >= 5) { \ if (unifi_debug >= 5) { \
...@@ -107,7 +101,6 @@ void unifi_trace(void* ospriv, int level, const char *fmt, ...); ...@@ -107,7 +101,6 @@ void unifi_trace(void* ospriv, int level, const char *fmt, ...);
#else #else
/* Stubs */ /* Stubs */
#define func_enter()
#define func_exit() #define func_exit()
#define func_exit_r(_rc) #define func_exit_r(_rc)
......
...@@ -2023,7 +2023,6 @@ u8 send_multicast_frames(unifi_priv_t *priv, u16 interfaceTag) ...@@ -2023,7 +2023,6 @@ u8 send_multicast_frames(unifi_priv_t *priv, u16 interfaceTag)
netInterface_priv_t *interfacePriv = priv->interfacePriv[interfaceTag]; netInterface_priv_t *interfacePriv = priv->interfacePriv[interfaceTag];
u32 hostTag = 0xffffffff; u32 hostTag = 0xffffffff;
func_enter();
if(!isRouterBufferEnabled(priv,UNIFI_TRAFFIC_Q_VO)) { if(!isRouterBufferEnabled(priv,UNIFI_TRAFFIC_Q_VO)) {
while((interfacePriv->dtimActive)&& (buffered_pkt=dequeue_tx_data_pdu(priv,&interfacePriv->genericMulticastOrBroadCastMgtFrames))) { while((interfacePriv->dtimActive)&& (buffered_pkt=dequeue_tx_data_pdu(priv,&interfacePriv->genericMulticastOrBroadCastMgtFrames))) {
buffered_pkt->transmissionControl |= (TRANSMISSION_CONTROL_TRIGGER_MASK); buffered_pkt->transmissionControl |= (TRANSMISSION_CONTROL_TRIGGER_MASK);
...@@ -2123,7 +2122,6 @@ void uf_process_ma_vif_availibility_ind(unifi_priv_t *priv,u8 *sigdata, ...@@ -2123,7 +2122,6 @@ void uf_process_ma_vif_availibility_ind(unifi_priv_t *priv,u8 *sigdata,
CSR_RESULT_CODE resultCode = CSR_RC_SUCCESS; CSR_RESULT_CODE resultCode = CSR_RC_SUCCESS;
netInterface_priv_t *interfacePriv; netInterface_priv_t *interfacePriv;
func_enter();
unifi_trace(priv, UDBG3, unifi_trace(priv, UDBG3,
"uf_process_ma_vif_availibility_ind: Process signal 0x%.4X\n", "uf_process_ma_vif_availibility_ind: Process signal 0x%.4X\n",
*((u16*)sigdata)); *((u16*)sigdata));
...@@ -2368,8 +2366,6 @@ void uf_send_buffered_data_from_ac(unifi_priv_t *priv, ...@@ -2368,8 +2366,6 @@ void uf_send_buffered_data_from_ac(unifi_priv_t *priv,
u8 moreData = FALSE; u8 moreData = FALSE;
s8 r =0; s8 r =0;
func_enter();
unifi_trace(priv,UDBG2,"uf_send_buffered_data_from_ac :\n"); unifi_trace(priv,UDBG2,"uf_send_buffered_data_from_ac :\n");
while(!isRouterBufferEnabled(priv,queue) && while(!isRouterBufferEnabled(priv,queue) &&
...@@ -2415,7 +2411,6 @@ void uf_send_buffered_frames(unifi_priv_t *priv,unifi_TrafficQueue q) ...@@ -2415,7 +2411,6 @@ void uf_send_buffered_frames(unifi_priv_t *priv,unifi_TrafficQueue q)
if(!((interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_AP) || if(!((interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_AP) ||
(interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_P2PGO))) (interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_P2PGO)))
return; return;
func_enter();
queue = (q<=3)?q:0; queue = (q<=3)?q:0;
...@@ -2769,7 +2764,6 @@ void uf_send_qos_null(unifi_priv_t * priv,u16 interfaceTag, const u8 *da,CSR_PRI ...@@ -2769,7 +2764,6 @@ void uf_send_qos_null(unifi_priv_t * priv,u16 interfaceTag, const u8 *da,CSR_PRI
CSR_RATE transmitRate = 0; CSR_RATE transmitRate = 0;
func_enter();
/* Send a Null Frame to Peer, /* Send a Null Frame to Peer,
* 32= size of mac header */ * 32= size of mac header */
csrResult = unifi_net_data_malloc(priv, &bulkdata.d[0], MAC_HEADER_SIZE + QOS_CONTROL_HEADER_SIZE); csrResult = unifi_net_data_malloc(priv, &bulkdata.d[0], MAC_HEADER_SIZE + QOS_CONTROL_HEADER_SIZE);
...@@ -2841,7 +2835,6 @@ void uf_send_nulldata(unifi_priv_t * priv,u16 interfaceTag, const u8 *da,CSR_PRI ...@@ -2841,7 +2835,6 @@ void uf_send_nulldata(unifi_priv_t * priv,u16 interfaceTag, const u8 *da,CSR_PRI
CSR_MA_PACKET_REQUEST *req = &signal.u.MaPacketRequest; CSR_MA_PACKET_REQUEST *req = &signal.u.MaPacketRequest;
unsigned long lock_flags; unsigned long lock_flags;
func_enter();
/* Send a Null Frame to Peer, size = 24 for MAC header */ /* Send a Null Frame to Peer, size = 24 for MAC header */
csrResult = unifi_net_data_malloc(priv, &bulkdata.d[0], MAC_HEADER_SIZE); csrResult = unifi_net_data_malloc(priv, &bulkdata.d[0], MAC_HEADER_SIZE);
...@@ -3326,8 +3319,6 @@ void uf_prepare_send_cfm_list_for_queued_pkts(unifi_priv_t * priv, ...@@ -3326,8 +3319,6 @@ void uf_prepare_send_cfm_list_for_queued_pkts(unifi_priv_t * priv,
struct list_head *placeHolder; struct list_head *placeHolder;
unsigned long lock_flags; unsigned long lock_flags;
func_enter();
spin_lock_irqsave(&priv->tx_q_lock,lock_flags); spin_lock_irqsave(&priv->tx_q_lock,lock_flags);
/* Search through the list and if confirmation required for any frames, /* Search through the list and if confirmation required for any frames,
...@@ -3594,7 +3585,6 @@ void resume_unicast_buffered_frames(unifi_priv_t *priv, u16 interfaceTag) ...@@ -3594,7 +3585,6 @@ void resume_unicast_buffered_frames(unifi_priv_t *priv, u16 interfaceTag)
int r; int r;
unsigned long lock_flags; unsigned long lock_flags;
func_enter();
while(!isRouterBufferEnabled(priv,3) && while(!isRouterBufferEnabled(priv,3) &&
((buffered_pkt=dequeue_tx_data_pdu(priv,&interfacePriv->genericMgtFrames))!=NULL)) { ((buffered_pkt=dequeue_tx_data_pdu(priv,&interfacePriv->genericMgtFrames))!=NULL)) {
buffered_pkt->transmissionControl &= buffered_pkt->transmissionControl &=
...@@ -3682,7 +3672,6 @@ void update_eosp_to_head_of_broadcast_list_head(unifi_priv_t *priv,u16 interface ...@@ -3682,7 +3672,6 @@ void update_eosp_to_head_of_broadcast_list_head(unifi_priv_t *priv,u16 interface
struct list_head *placeHolder; struct list_head *placeHolder;
tx_buffered_packets_t *tx_q_item; tx_buffered_packets_t *tx_q_item;
func_enter();
if (interfacePriv->noOfbroadcastPktQueued) { if (interfacePriv->noOfbroadcastPktQueued) {
/* Update the EOSP to the HEAD of b/c list /* Update the EOSP to the HEAD of b/c list
......
...@@ -78,7 +78,6 @@ sme_log_event(ul_client_t *pcli, ...@@ -78,7 +78,6 @@ sme_log_event(ul_client_t *pcli,
CsrResult result = CSR_RESULT_SUCCESS; CsrResult result = CSR_RESULT_SUCCESS;
int r; int r;
func_enter();
/* Just a sanity check */ /* Just a sanity check */
if ((signal == NULL) || (signal_len <= 0)) { if ((signal == NULL) || (signal_len <= 0)) {
func_exit(); func_exit();
...@@ -1158,8 +1157,6 @@ uf_send_m4_ready_wq(struct work_struct *work) ...@@ -1158,8 +1157,6 @@ uf_send_m4_ready_wq(struct work_struct *work)
CsrWifiMacAddress peer; CsrWifiMacAddress peer;
unsigned long flags; unsigned long flags;
func_enter();
/* The peer address was stored in the signal */ /* The peer address was stored in the signal */
spin_lock_irqsave(&priv->m4_lock, flags); spin_lock_irqsave(&priv->m4_lock, flags);
memcpy(peer.a, req->Ra.x, sizeof(peer.a)); memcpy(peer.a, req->Ra.x, sizeof(peer.a));
...@@ -1204,8 +1201,6 @@ void uf_send_pkt_to_encrypt(struct work_struct *work) ...@@ -1204,8 +1201,6 @@ void uf_send_pkt_to_encrypt(struct work_struct *work)
if (interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_STA) { if (interfacePriv->interfaceMode == CSR_WIFI_ROUTER_CTRL_MODE_STA) {
func_enter();
pktBulkDataLength = interfacePriv->wapi_unicast_bulk_data.data_length; pktBulkDataLength = interfacePriv->wapi_unicast_bulk_data.data_length;
if (pktBulkDataLength > 0) { if (pktBulkDataLength > 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