@@ -214,10 +214,10 @@ void _rtw_free_network_nolock(struct mlme_priv *pmlmepriv, struct wlan_network *
214214}
215215
216216/*
217- return the wlan_network with the matching addr
218-
219- Shall be called under atomic context... to avoid possible racing condition...
220- */
217+ * return the wlan_network with the matching addr
218+ *
219+ * Shall be called under atomic context... to avoid possible racing condition...
220+ */
221221struct wlan_network * _rtw_find_network (struct __queue * scanned_queue , u8 * addr )
222222{
223223 struct list_head * phead , * plist ;
@@ -319,10 +319,10 @@ void rtw_free_network_nolock(struct adapter *padapter, struct wlan_network *pnet
319319}
320320
321321/*
322- return the wlan_network with the matching addr
323-
324- Shall be called under atomic context... to avoid possible racing condition...
325- */
322+ * return the wlan_network with the matching addr
323+ *
324+ * Shall be called under atomic context... to avoid possible racing condition...
325+ */
326326struct wlan_network * rtw_find_network (struct __queue * scanned_queue , u8 * addr )
327327{
328328 struct wlan_network * pnetwork = _rtw_find_network (scanned_queue , addr );
@@ -476,9 +476,7 @@ static void update_current_network(struct adapter *adapter, struct wlan_bssid_ex
476476 }
477477}
478478
479- /*
480- Caller must hold pmlmepriv->lock first.
481- */
479+ /* Caller must hold pmlmepriv->lock first. */
482480void rtw_update_scanned_network (struct adapter * adapter , struct wlan_bssid_ex * target )
483481{
484482 struct list_head * plist , * phead ;
@@ -510,8 +508,10 @@ void rtw_update_scanned_network(struct adapter *adapter, struct wlan_bssid_ex *t
510508 oldest = pnetwork ;
511509 }
512510
513- /* If we didn't find a match, then get a new network slot to initialize
514- * with this beacon's information */
511+ /*
512+ * If we didn't find a match, then get a new network slot to initialize
513+ * with this beacon's information
514+ */
515515 if (!target_find ) {
516516 if (list_empty (& pmlmepriv -> free_bss_pool .queue )) {
517517 /* If there are no more slots, expire the oldest */
@@ -843,9 +843,7 @@ static void find_network(struct adapter *adapter)
843843 rtw_free_network_nolock (adapter , pwlan );
844844}
845845
846- /*
847- *rtw_free_assoc_resources: the caller has to lock pmlmepriv->lock
848- */
846+ /* rtw_free_assoc_resources: the caller has to lock pmlmepriv->lock */
849847void rtw_free_assoc_resources (struct adapter * adapter , int lock_scanned_queue )
850848{
851849 struct mlme_priv * pmlmepriv = & adapter -> mlmepriv ;
@@ -879,9 +877,7 @@ void rtw_free_assoc_resources(struct adapter *adapter, int lock_scanned_queue)
879877 rtw_reset_rx_info (pdbgpriv );
880878}
881879
882- /*
883- *rtw_indicate_connect: the caller has to lock pmlmepriv->lock
884- */
880+ /* rtw_indicate_connect: the caller has to lock pmlmepriv->lock */
885881void rtw_indicate_connect (struct adapter * padapter )
886882{
887883 struct mlme_priv * pmlmepriv = & padapter -> mlmepriv ;
@@ -908,9 +904,7 @@ void rtw_indicate_connect(struct adapter *padapter)
908904 rtw_set_scan_deny (padapter , 3000 );
909905}
910906
911- /*
912- *rtw_indicate_disconnect: the caller has to lock pmlmepriv->lock
913- */
907+ /* rtw_indicate_disconnect: the caller has to lock pmlmepriv->lock */
914908void rtw_indicate_disconnect (struct adapter * padapter )
915909{
916910 struct mlme_priv * pmlmepriv = & padapter -> mlmepriv ;
@@ -1543,9 +1537,9 @@ void rtw_wmm_event_callback(struct adapter *padapter, u8 *pbuf)
15431537}
15441538
15451539/*
1546- * _rtw_join_timeout_handler - Timeout/failure handler for CMD JoinBss
1547- * @adapter: pointer to struct adapter structure
1548- */
1540+ * _rtw_join_timeout_handler - Timeout/failure handler for CMD JoinBss
1541+ * @adapter: pointer to struct adapter structure
1542+ */
15491543void _rtw_join_timeout_handler (struct timer_list * t )
15501544{
15511545 struct adapter * adapter = timer_container_of (adapter , t ,
@@ -1586,9 +1580,9 @@ void _rtw_join_timeout_handler(struct timer_list *t)
15861580}
15871581
15881582/*
1589- * rtw_scan_timeout_handler - Timeout/Failure handler for CMD SiteSurvey
1590- * @adapter: pointer to struct adapter structure
1591- */
1583+ * rtw_scan_timeout_handler - Timeout/Failure handler for CMD SiteSurvey
1584+ * @adapter: pointer to struct adapter structure
1585+ */
15921586void rtw_scan_timeout_handler (struct timer_list * t )
15931587{
15941588 struct adapter * adapter = timer_container_of (adapter , t ,
@@ -1704,10 +1698,10 @@ void rtw_set_scan_deny(struct adapter *adapter, u32 ms)
17041698}
17051699
17061700/*
1707- * Select a new roaming candidate from the original @param candidate and @param competitor
1708- * @return true: candidate is updated
1709- * @return false: candidate is not updated
1710- */
1701+ * Select a new roaming candidate from the original @param candidate and @param competitor
1702+ * @return true: candidate is updated
1703+ * @return false: candidate is not updated
1704+ */
17111705static int rtw_check_roaming_candidate (struct mlme_priv * mlme
17121706 , struct wlan_network * * candidate , struct wlan_network * competitor )
17131707{
@@ -1785,10 +1779,10 @@ int rtw_select_roaming_candidate(struct mlme_priv *mlme)
17851779}
17861780
17871781/*
1788- * Select a new join candidate from the original @param candidate and @param competitor
1789- * @return true: candidate is updated
1790- * @return false: candidate is not updated
1791- */
1782+ * Select a new join candidate from the original @param candidate and @param competitor
1783+ * @return true: candidate is updated
1784+ * @return false: candidate is not updated
1785+ */
17921786static int rtw_check_join_candidate (struct mlme_priv * mlme
17931787 , struct wlan_network * * candidate , struct wlan_network * competitor )
17941788{
@@ -1829,11 +1823,11 @@ static int rtw_check_join_candidate(struct mlme_priv *mlme
18291823}
18301824
18311825/*
1832- Calling context:
1833- The caller of the sub-routine will be in critical section...
1834- The caller must hold the following spinlock
1835- pmlmepriv->lock
1836- */
1826+ * Calling context:
1827+ * The caller of the sub-routine will be in critical section...
1828+ * The caller must hold the following spinlock
1829+ * pmlmepriv->lock
1830+ */
18371831
18381832int rtw_select_and_join_from_scanned_queue (struct mlme_priv * pmlmepriv )
18391833{
0 commit comments