Commit 58af42a4 authored by Masanari Iida's avatar Masanari Iida Committed by Greg Kroah-Hartman

staging: csr: Fix typos in csr

Correct spelling typos in comment witin csr.
Signed-off-by: default avatarMasanari Iida <standby24x7@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6cadd88a
...@@ -70,7 +70,7 @@ extern CsrWifiFsmContext* CsrWifiFsmInit(void *applicationContext, void *externa ...@@ -70,7 +70,7 @@ extern CsrWifiFsmContext* CsrWifiFsmInit(void *applicationContext, void *externa
* This function is used to free any dynamic resources allocated for the * This function is used to free any dynamic resources allocated for the
* given context by CsrWifiFsmInit(). * given context by CsrWifiFsmInit().
* The FSM's reset function is called to cleanup any fsm specific memory * The FSM's reset function is called to cleanup any fsm specific memory
* The reset funtion does NOT need to free the fsm data pointer as * The reset function does NOT need to free the fsm data pointer as
* CsrWifiFsmShutdown() will do it. * CsrWifiFsmShutdown() will do it.
* the FSM's init function is call again to reinitialise the FSM context. * the FSM's init function is call again to reinitialise the FSM context.
* CsrWifiFsmReset() should NEVER be called when CsrWifiFsmExecute() is running. * CsrWifiFsmReset() should NEVER be called when CsrWifiFsmExecute() is running.
...@@ -91,7 +91,7 @@ extern void CsrWifiFsmReset(CsrWifiFsmContext *context); ...@@ -91,7 +91,7 @@ extern void CsrWifiFsmReset(CsrWifiFsmContext *context);
* given context by CsrWifiFsmInit(), prior to complete termination of * given context by CsrWifiFsmInit(), prior to complete termination of
* the program. * the program.
* The FSM's reset function is called to cleanup any fsm specific memory. * The FSM's reset function is called to cleanup any fsm specific memory.
* The reset funtion does NOT need to free the fsm data pointer as * The reset function does NOT need to free the fsm data pointer as
* CsrWifiFsmShutdown() will do it. * CsrWifiFsmShutdown() will do it.
* CsrWifiFsmShutdown() should NEVER be called when CsrWifiFsmExecute() is running. * CsrWifiFsmShutdown() should NEVER be called when CsrWifiFsmExecute() is running.
* *
...@@ -203,7 +203,7 @@ extern void CsrWifiFsmFastForward(CsrWifiFsmContext *context, u16 ms); ...@@ -203,7 +203,7 @@ extern void CsrWifiFsmFastForward(CsrWifiFsmContext *context, u16 ms);
* shift the current time of day by ms amount * shift the current time of day by ms amount
* *
* @par Description * @par Description
* usefull to speed up tests where time needs to pass * useful to speed up tests where time needs to pass
* *
* @param[in] context : FSM context * @param[in] context : FSM context
* @param[in] ms : ms to adjust time by * @param[in] ms : ms to adjust time by
......
...@@ -559,7 +559,7 @@ static void _build_sdio_config_data(sdio_config_data_t *cfg_data, ...@@ -559,7 +559,7 @@ static void _build_sdio_config_data(sdio_config_data_t *cfg_data,
* padding bytes. Every read from this memory has to be transformed in * padding bytes. Every read from this memory has to be transformed in
* host (cpu specific) format, before it is stored in driver's parameters * host (cpu specific) format, before it is stored in driver's parameters
* or/and structures. Athough unifi_card_read16() and unifi_read32() do perform * or/and structures. Athough unifi_card_read16() and unifi_read32() do perform
* the convertion internally, unifi_readn() does not. * the conversion internally, unifi_readn() does not.
* --------------------------------------------------------------------------- * ---------------------------------------------------------------------------
*/ */
static CsrResult card_hw_init(card_t *card) static CsrResult card_hw_init(card_t *card)
...@@ -1332,7 +1332,7 @@ static CsrResult card_access_panic(card_t *card) ...@@ -1332,7 +1332,7 @@ static CsrResult card_access_panic(card_t *card)
s32 i; s32 i;
CsrResult r, sr; CsrResult r, sr;
/* A chip version of zero means that the version never got succesfully read /* A chip version of zero means that the version never got successfully 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.
*/ */
...@@ -2446,7 +2446,7 @@ static CsrResult unifi_prepare_hw(card_t *card) ...@@ -2446,7 +2446,7 @@ static CsrResult unifi_prepare_hw(card_t *card)
if (old_state == UNIFI_HOST_STATE_TORPID) if (old_state == UNIFI_HOST_STATE_TORPID)
{ {
/* Ensure the initial clock rate is set; if a reset occured when the chip was /* Ensure the initial clock rate is set; if a reset occurred when the chip was
* TORPID, unifi_set_host_state() may have raised it to MAX. * TORPID, unifi_set_host_state() may have raised it to MAX.
*/ */
csrResult = CsrSdioMaxBusClockFrequencySet(card->sdio_if, UNIFI_SDIO_CLOCK_INIT_HZ); csrResult = CsrSdioMaxBusClockFrequencySet(card->sdio_if, UNIFI_SDIO_CLOCK_INIT_HZ);
...@@ -2567,7 +2567,7 @@ static CsrResult unifi_reset_hardware(card_t *card) ...@@ -2567,7 +2567,7 @@ static CsrResult unifi_reset_hardware(card_t *card)
csrResult = CsrSdioHardReset(card->sdio_if); csrResult = CsrSdioHardReset(card->sdio_if);
if (csrResult == CSR_RESULT_SUCCESS) if (csrResult == CSR_RESULT_SUCCESS)
{ {
unifi_info(card->ospriv, "CsrSdioHardReset succeeded on reseting UniFi\n"); unifi_info(card->ospriv, "CsrSdioHardReset succeeded on resetting UniFi\n");
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)
{ {
......
...@@ -1468,7 +1468,7 @@ static int update_macheader(unifi_priv_t *priv, struct sk_buff *skb, ...@@ -1468,7 +1468,7 @@ static int update_macheader(unifi_priv_t *priv, struct sk_buff *skb,
} }
} }
/* prepare the complete skb, by pushing the MAC header to the begining of the skb->data */ /* prepare the complete skb, by pushing the MAC header to the beginning of the skb->data */
unifi_trace(priv, UDBG5, "updated Mac Header: %d \n",macHeaderLengthInBytes); unifi_trace(priv, UDBG5, "updated Mac Header: %d \n",macHeaderLengthInBytes);
memcpy(bufPtr, macHeaderBuf, macHeaderLengthInBytes); memcpy(bufPtr, macHeaderBuf, macHeaderLengthInBytes);
...@@ -1546,7 +1546,7 @@ uf_ap_process_data_pdu(unifi_priv_t *priv, struct sk_buff *skb, ...@@ -1546,7 +1546,7 @@ uf_ap_process_data_pdu(unifi_priv_t *priv, struct sk_buff *skb,
return -1; return -1;
} }
/* fetch the destination record from staion record database */ /* fetch the destination record from station record database */
dstStaInfo = CsrWifiRouterCtrlGetStationRecordFromPeerMacAddress(priv, ehdr->h_dest, interfaceTag); dstStaInfo = CsrWifiRouterCtrlGetStationRecordFromPeerMacAddress(priv, ehdr->h_dest, interfaceTag);
/* AP mode processing, & if packet is unicast */ /* AP mode processing, & if packet is unicast */
...@@ -1878,13 +1878,13 @@ CsrResult uf_process_ma_packet_req(unifi_priv_t *priv, ...@@ -1878,13 +1878,13 @@ CsrResult uf_process_ma_packet_req(unifi_priv_t *priv,
} }
else if ((pktType == CSR_WIFI_MULTICAST_PDU) && (!status)) else if ((pktType == CSR_WIFI_MULTICAST_PDU) && (!status))
{ {
/* If broadcast Tim is set && queuing is successfull, then only update TIM */ /* If broadcast Tim is set && queuing is successful, then only update TIM */
spin_lock_irqsave(&priv->staRecord_lock,lock_flags); spin_lock_irqsave(&priv->staRecord_lock,lock_flags);
interfacePriv->noOfbroadcastPktQueued++; interfacePriv->noOfbroadcastPktQueued++;
spin_unlock_irqrestore(&priv->staRecord_lock,lock_flags); spin_unlock_irqrestore(&priv->staRecord_lock,lock_flags);
} }
} }
/* If broadcast Tim is set && queuing is successfull, then only update TIM */ /* If broadcast Tim is set && queuing is successful, then only update TIM */
if(setBcTim && !status) { if(setBcTim && !status) {
unifi_trace(priv, UDBG3, "tim set due to broadcast pkt\n"); unifi_trace(priv, UDBG3, "tim set due to broadcast pkt\n");
if (!interfacePriv->bcTimSetReqPendingFlag) if (!interfacePriv->bcTimSetReqPendingFlag)
...@@ -1995,7 +1995,7 @@ s8 uf_get_protection_bit_from_interfacemode(unifi_priv_t *priv, u16 interfaceTag ...@@ -1995,7 +1995,7 @@ s8 uf_get_protection_bit_from_interfacemode(unifi_priv_t *priv, u16 interfaceTag
*/ */
protection = interfacePriv->protect; protection = interfacePriv->protect;
} else { } else {
/* fetch the destination record from staion record database */ /* fetch the destination record from station record database */
dstStaInfo = CsrWifiRouterCtrlGetStationRecordFromPeerMacAddress(priv, daddr, interfaceTag); dstStaInfo = CsrWifiRouterCtrlGetStationRecordFromPeerMacAddress(priv, daddr, interfaceTag);
if (!dstStaInfo) { if (!dstStaInfo) {
unifi_trace(priv, UDBG3, "peer not found in station record in send_ma_pkt_request\n"); unifi_trace(priv, UDBG3, "peer not found in station record in send_ma_pkt_request\n");
...@@ -3170,7 +3170,7 @@ void uf_process_ps_poll(unifi_priv_t *priv,u8* sa,u8* da,u8 pmBit,u16 interfaceT ...@@ -3170,7 +3170,7 @@ void uf_process_ps_poll(unifi_priv_t *priv,u8* sa,u8* da,u8 pmBit,u16 interfaceT
/*Send Data From Management Frames*/ /*Send Data From Management Frames*/
/* Priority orders for delivering the buffered packets are /* Priority orders for delivering the buffered packets are
* 1. Deliver the Management frames if there * 1. Deliver the Management frames if there
* 2. Other access catagory frames which are non deliver enable including UNIFI_TRAFFIC_Q_VO * 2. Other access category frames which are non deliver enable including UNIFI_TRAFFIC_Q_VO
* priority is from VO->BK * priority is from VO->BK
*/ */
...@@ -3439,7 +3439,7 @@ CsrWifiRouterCtrlStaInfo_t *CsrWifiRouterCtrlGetStationRecordFromPeerMacAddress( ...@@ -3439,7 +3439,7 @@ CsrWifiRouterCtrlStaInfo_t *CsrWifiRouterCtrlGetStationRecordFromPeerMacAddress(
interfacePriv = priv->interfacePriv[interfaceTag]; interfacePriv = priv->interfacePriv[interfaceTag];
/* disable the preemption untill station record is fetched */ /* disable the preemption until station record is fetched */
spin_lock_irqsave(&priv->staRecord_lock,lock_flags); spin_lock_irqsave(&priv->staRecord_lock,lock_flags);
for (i = 0; i < UNIFI_MAX_CONNECTIONS; i++) { for (i = 0; i < UNIFI_MAX_CONNECTIONS; i++) {
...@@ -3665,7 +3665,7 @@ void update_eosp_to_head_of_broadcast_list_head(unifi_priv_t *priv,u16 interface ...@@ -3665,7 +3665,7 @@ void update_eosp_to_head_of_broadcast_list_head(unifi_priv_t *priv,u16 interface
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
* beacuse we have received any mgmt packet so it should not hold for long time * because we have received any mgmt packet so it should not hold for long time
* peer may time out. * peer may time out.
*/ */
spin_lock_irqsave(&priv->tx_q_lock,lock_flags); spin_lock_irqsave(&priv->tx_q_lock,lock_flags);
......
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