diff options
Diffstat (limited to 'drivers/net/wireless/sd8797/mlan/mlan_cmdevt.c')
-rw-r--r-- | drivers/net/wireless/sd8797/mlan/mlan_cmdevt.c | 176 |
1 files changed, 88 insertions, 88 deletions
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_cmdevt.c b/drivers/net/wireless/sd8797/mlan/mlan_cmdevt.c index 8b91ae2c43c2..f3db9e662565 100644 --- a/drivers/net/wireless/sd8797/mlan/mlan_cmdevt.c +++ b/drivers/net/wireless/sd8797/mlan/mlan_cmdevt.c @@ -46,7 +46,7 @@ Change Log: Local Functions ********************************************************/ -/** +/** * @brief This function convert a given character to hex * * @param chr Character to be converted @@ -122,9 +122,9 @@ wlan_parse_cal_cfg(t_u8 * src, t_size len, t_u8 * dst) return (dptr - dst); } -/** +/** * @brief This function initializes the command node. - * + * * @param pmpriv A pointer to mlan_private structure * @param pcmd_node A pointer to cmd_ctrl_node structure * @param cmd_oid Cmd oid: treated as sub command @@ -165,10 +165,10 @@ wlan_init_cmd_node(IN pmlan_private pmpriv, LEAVE(); } -/** +/** * @brief This function gets a free command node if available in * command free queue. - * + * * @param pmadapter A pointer to mlan_adapter structure * * @return cmd_ctrl_node A pointer to cmd_ctrl_node structure or MNULL @@ -203,9 +203,9 @@ wlan_get_cmd_node(mlan_adapter * pmadapter) return pcmd_node; } -/** +/** * @brief This function cleans command node. - * + * * @param pmadapter A pointer to mlan_adapter structure * @param pcmd_node A pointer to cmd_ctrl_node structure * @@ -235,9 +235,9 @@ wlan_clean_cmd_node(pmlan_adapter pmadapter, cmd_ctrl_node * pcmd_node) } /** - * @brief This function will return the pointer to the first entry in + * @brief This function will return the pointer to the first entry in * pending cmd which matches the given pioctl_req - * + * * @param pmadapter A pointer to mlan_adapter * @param pioctl_req A pointer to mlan_ioctl_req buf * @@ -271,9 +271,9 @@ wlan_get_pending_ioctl_cmd(pmlan_adapter pmadapter, pmlan_ioctl_req pioctl_req) return MNULL; } -/** +/** * @brief This function handles the command response of host_cmd - * + * * @param pmpriv A pointer to mlan_private structure * @param resp A pointer to HostCmd_DS_COMMAND * @param pioctl_buf A pointer to mlan_ioctl_req structure @@ -301,9 +301,9 @@ wlan_ret_host_cmd(IN pmlan_private pmpriv, return MLAN_STATUS_SUCCESS; } -/** +/** * @brief This function sends host command to firmware. - * + * * @param pmpriv A pointer to mlan_private structure * @param cmd A pointer to HostCmd_DS_COMMAND structure * @param pdata_buf A pointer to data buffer @@ -325,9 +325,9 @@ wlan_cmd_host_cmd(IN pmlan_private pmpriv, return MLAN_STATUS_SUCCESS; } -/** +/** * @brief This function downloads a command to firmware. - * + * * @param pmpriv A pointer to mlan_private structure * @param pcmd_node A pointer to cmd_ctrl_node structure * @@ -459,7 +459,7 @@ wlan_dnld_cmd_to_fw(IN mlan_private * pmpriv, IN cmd_ctrl_node * pcmd_node) /** * @brief This function sends sleep confirm command to firmware. - * + * * @param pmadapter A pointer to mlan_adapter structure * * @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE @@ -539,9 +539,9 @@ wlan_dnld_sleep_confirm_cmd(mlan_adapter * pmadapter) Global Functions ********************************************************/ -/** +/** * @brief Event handler - * + * * @param priv A pointer to mlan_private structure * @param event_id Event ID * @param pmevent Event buffer @@ -574,10 +574,10 @@ wlan_recv_event(pmlan_private priv, mlan_event_id event_id, t_void * pmevent) return MLAN_STATUS_SUCCESS; } -/** +/** * @brief This function allocates the command buffer and links * it to command free queue. - * + * * @param pmadapter A pointer to mlan_adapter structure * * @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE @@ -630,7 +630,7 @@ wlan_alloc_cmd_buffer(IN mlan_adapter * pmadapter) /** * @brief This function frees the command buffer. - * + * * @param pmadapter A pointer to mlan_adapter structure * * @return MLAN_STATUS_SUCCESS @@ -676,9 +676,9 @@ wlan_free_cmd_buffer(IN mlan_adapter * pmadapter) return MLAN_STATUS_SUCCESS; } -/** +/** * @brief This function handles events generated by firmware - * + * * @param pmadapter A pointer to mlan_adapter structure * * @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE @@ -745,9 +745,9 @@ wlan_process_event(pmlan_adapter pmadapter) return ret; } -/** +/** * @brief This function requests a lock on command queue. - * + * * @param pmadapter A pointer to mlan_adapter structure * * @return N/A @@ -766,9 +766,9 @@ wlan_request_cmd_lock(IN mlan_adapter * pmadapter) return; } -/** +/** * @brief This function releases a lock on command queue. - * + * * @param pmadapter A pointer to mlan_adapter structure * * @return N/A @@ -787,9 +787,9 @@ wlan_release_cmd_lock(IN mlan_adapter * pmadapter) return; } -/** +/** * @brief This function prepare the command before sending to firmware. - * + * * @param pmpriv A pointer to mlan_private structure * @param cmd_no Command number * @param cmd_action Command action: GET or SET @@ -904,10 +904,10 @@ wlan_prepare_cmd(IN mlan_private * pmpriv, return ret; } -/** +/** * @brief This function inserts command node to cmd_free_q * after cleaning it. - * + * * @param pmadapter A pointer to mlan_adapter structure * @param pcmd_node A pointer to cmd_ctrl_node structure * @@ -944,9 +944,9 @@ wlan_insert_cmd_to_free_q(IN mlan_adapter * pmadapter, LEAVE(); } -/** +/** * @brief This function queues the command to cmd list. - * + * * @param pmadapter A pointer to mlan_adapter structure * @param pcmd_node A pointer to cmd_ctrl_node structure * @param add_tail Specify if the cmd needs to be queued in the header or tail @@ -1008,14 +1008,14 @@ wlan_insert_cmd_to_pending_q(IN mlan_adapter * pmadapter, return; } -/** +/** * @brief This function executes next command in command * pending queue. It will put firmware back to PS mode * if applicable. - * + * * @param pmadapter A pointer to mlan_adapter structure * - * @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE + * @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE */ mlan_status wlan_exec_next_cmd(mlan_adapter * pmadapter) @@ -1090,9 +1090,9 @@ wlan_exec_next_cmd(mlan_adapter * pmadapter) return ret; } -/** +/** * @brief This function handles the command response - * + * * @param pmadapter A pointer to mlan_adapter structure * * @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE @@ -1288,10 +1288,10 @@ wlan_process_cmdresp(mlan_adapter * pmadapter) return ret; } -/** +/** * @brief This function handles the timeout of command sending. * It will re-send the same command again. - * + * * @param function_context A pointer to function_context * @return N/A */ @@ -1478,7 +1478,7 @@ wlan_flush_scan_queue(IN pmlan_adapter pmadapter) /** * @brief Cancel all pending cmd. - * + * * @param pmadapter A pointer to mlan_adapter * * @return N/A @@ -1530,7 +1530,7 @@ wlan_cancel_all_pending_cmd(pmlan_adapter pmadapter) /** * @brief Cancel pending ioctl cmd. - * + * * @param pmadapter A pointer to mlan_adapter * @param pioctl_req A pointer to mlan_ioctl_req buf * @@ -1642,7 +1642,7 @@ wlan_ret_rx_mgmt_ind(IN pmlan_private pmpriv, /** * @brief This function checks conditions and prepares to * send sleep confirm command to firmware if OK. - * + * * @param pmadapter A pointer to mlan_adapter structure * * @return N/A @@ -1665,9 +1665,9 @@ wlan_check_ps_cond(mlan_adapter * pmadapter) LEAVE(); } -/** +/** * @brief This function sends the HS_ACTIVATED event to the application - * + * * @param priv A pointer to mlan_private structure * @param activated MTRUE if activated, MFALSE if de-activated * @@ -1694,9 +1694,9 @@ wlan_host_sleep_activated_event(pmlan_private priv, t_u8 activated) LEAVE(); } -/** +/** * @brief This function sends the HS_WAKEUP event to the application - * + * * @param priv A pointer to mlan_private structure * * @return N/A @@ -1715,9 +1715,9 @@ wlan_host_sleep_wakeup_event(pmlan_private priv) LEAVE(); } -/** +/** * @brief This function handles the command response of hs_cfg - * + * * @param pmpriv A pointer to mlan_private structure * @param resp A pointer to HostCmd_DS_COMMAND * @param pioctl_buf A pointer to mlan_ioctl_req structure @@ -1767,9 +1767,9 @@ wlan_ret_802_11_hs_cfg(IN pmlan_private pmpriv, return MLAN_STATUS_SUCCESS; } -/** +/** * @brief Perform hs related activities on receiving the power up interrupt - * + * * @param pmadapter A pointer to the adapter structure * @return N/A */ @@ -1784,9 +1784,9 @@ wlan_process_hs_config(pmlan_adapter pmadapter) return; } -/** +/** * @brief Check sleep confirm command response and set the state to ASLEEP - * + * * @param pmadapter A pointer to the adapter structure * @param pbuf A pointer to the command response buffer * @param upld_len Command response buffer length @@ -1842,7 +1842,7 @@ wlan_process_sleep_confirm_resp(pmlan_adapter pmadapter, t_u8 * pbuf, /** * @brief This function prepares command of power mode - * + * * @param pmpriv A pointer to mlan_private structure * @param cmd A pointer to HostCmd_DS_COMMAND structure * @param cmd_action the action: GET or SET @@ -1964,9 +1964,9 @@ wlan_cmd_enh_power_mode(pmlan_private pmpriv, return MLAN_STATUS_SUCCESS; } -/** +/** * @brief This function handles the command response of ps_mode_enh - * + * * @param pmpriv A pointer to mlan_private structure * @param resp A pointer to HostCmd_DS_COMMAND * @param pioctl_buf A pointer to mlan_ioctl_req structure @@ -2116,9 +2116,9 @@ wlan_ret_enh_power_mode(IN pmlan_private pmpriv, return MLAN_STATUS_SUCCESS; } -/** +/** * @brief This function handles the command response of tx rate query - * + * * @param pmpriv A pointer to mlan_private structure * @param resp A pointer to HostCmd_DS_COMMAND * @param pioctl_buf A pointer to mlan_ioctl_req structure @@ -2150,7 +2150,7 @@ wlan_ret_802_11_tx_rate_query(IN pmlan_private pmpriv, rate->param.rate_cfg.rate = pmpriv->tx_rate + MLAN_RATE_INDEX_MCS0; else - /* For HostCmd_CMD_802_11_TX_RATE_QUERY, there is a hole in + /* For HostCmd_CMD_802_11_TX_RATE_QUERY, there is a hole in rate table between HR/DSSS and OFDM rates, so minus 1 for OFDM rate index */ rate->param.rate_cfg.rate = @@ -2209,9 +2209,9 @@ wlan_ret_802_11_tx_rate_query(IN pmlan_private pmpriv, return MLAN_STATUS_SUCCESS; } -/** +/** * @brief This function prepares command of tx_rate_cfg. - * + * * @param pmpriv A pointer to mlan_private structure * @param cmd A pointer to HostCmd_DS_COMMAND structure * @param cmd_action The action: GET or SET @@ -2275,12 +2275,12 @@ wlan_cmd_tx_rate_cfg(IN pmlan_private pmpriv, return MLAN_STATUS_SUCCESS; } -/** +/** * @brief This function handles the command response of tx_rate_cfg - * + * * @param pmpriv A pointer to mlan_private structure * @param resp A pointer to HostCmd_DS_COMMAND - * @param pioctl_buf A pointer to mlan_ioctl_req structure + * @param pioctl_buf A pointer to mlan_ioctl_req structure * * @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE */ @@ -2387,7 +2387,7 @@ wlan_ret_tx_rate_cfg(IN pmlan_private pmpriv, } /** - * @brief This function issues adapter specific commands + * @brief This function issues adapter specific commands * to initialize firmware * * @param pmadapter A pointer to mlan_adapter structure @@ -2410,8 +2410,8 @@ wlan_adapter_init_cmd(IN pmlan_adapter pmadapter) pmpriv_sta = wlan_get_priv(pmadapter, MLAN_BSS_ROLE_STA); #endif - /* - * This should be issued in the very first to config + /* + * This should be issued in the very first to config * SDIO_GPIO interrupt mode. */ if (wlan_set_sdio_gpio_int(pmpriv) != MLAN_STATUS_SUCCESS) { @@ -2439,7 +2439,7 @@ wlan_adapter_init_cmd(IN pmlan_adapter pmadapter) pmadapter->cal_data_len = 0; } - /* + /* * Get HW spec */ ret = wlan_prepare_cmd(pmpriv, HostCmd_CMD_GET_HW_SPEC, @@ -2501,9 +2501,9 @@ wlan_adapter_init_cmd(IN pmlan_adapter pmadapter) return ret; } -/** +/** * @brief This function prepares command of get_hw_spec. - * + * * @param pmpriv A pointer to mlan_private structure * @param pcmd A pointer to HostCmd_DS_COMMAND structure * @@ -2525,7 +2525,7 @@ wlan_cmd_get_hw_spec(IN pmlan_private pmpriv, IN HostCmd_DS_COMMAND * pcmd) return MLAN_STATUS_SUCCESS; } -/** +/** * @brief This function prepares command of set_cfg_data. * * @param pmpriv A pointer to mlan_private strcture @@ -2603,9 +2603,9 @@ wlan_ret_cfg_data(IN pmlan_private pmpriv, return ret; } -/** +/** * @brief This function handles the command response of get_hw_spec - * + * * @param pmpriv A pointer to mlan_private structure * @param resp A pointer to HostCmd_DS_COMMAND * @param pioctl_buf A pointer to command buffer @@ -2741,9 +2741,9 @@ wlan_ret_get_hw_spec(IN pmlan_private pmpriv, return ret; } -/** +/** * @brief This function prepares command of radio_control. - * + * * @param pmpriv A pointer to mlan_private structure * @param cmd A pointer to HostCmd_DS_COMMAND structure * @param cmd_action The action: GET or SET @@ -2769,12 +2769,12 @@ wlan_cmd_802_11_radio_control(IN pmlan_private pmpriv, return MLAN_STATUS_SUCCESS; } -/** +/** * @brief This function handles the command response of radio_control - * + * * @param pmpriv A pointer to mlan_private structure * @param resp A pointer to HostCmd_DS_COMMAND - * @param pioctl_buf A pointer to mlan_ioctl_req structure + * @param pioctl_buf A pointer to mlan_ioctl_req structure * * @return MLAN_STATUS_SUCCESS */ @@ -2800,9 +2800,9 @@ wlan_ret_802_11_radio_control(IN pmlan_private pmpriv, } #ifdef WIFI_DIRECT_SUPPORT -/** +/** * @brief This function prepares command of remain_on_channel. - * + * * @param pmpriv A pointer to mlan_private structure * @param cmd A pointer to HostCmd_DS_COMMAND structure * @param cmd_action The action: GET or SET @@ -2838,12 +2838,12 @@ wlan_cmd_remain_on_channel(IN pmlan_private pmpriv, return MLAN_STATUS_SUCCESS; } -/** +/** * @brief This function handles the command response of remain_on_channel - * + * * @param pmpriv A pointer to mlan_private structure * @param resp A pointer to HostCmd_DS_COMMAND - * @param pioctl_buf A pointer to mlan_ioctl_req structure + * @param pioctl_buf A pointer to mlan_ioctl_req structure * * @return MLAN_STATUS_SUCCESS */ @@ -2869,9 +2869,9 @@ wlan_ret_remain_on_channel(IN pmlan_private pmpriv, return MLAN_STATUS_SUCCESS; } -/** +/** * @brief This function prepares command of wifi direct mode. - * + * * @param pmpriv A pointer to mlan_private structure * @param cmd A pointer to HostCmd_DS_COMMAND structure * @param cmd_action The action: GET or SET @@ -2898,12 +2898,12 @@ wlan_cmd_wifi_direct_mode(IN pmlan_private pmpriv, return MLAN_STATUS_SUCCESS; } -/** +/** * @brief This function handles the command response of wifi direct mode - * + * * @param pmpriv A pointer to mlan_private structure * @param resp A pointer to HostCmd_DS_COMMAND - * @param pioctl_buf A pointer to mlan_ioctl_req structure + * @param pioctl_buf A pointer to mlan_ioctl_req structure * * @return MLAN_STATUS_SUCCESS */ |