hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/wireless/ath/ath5k/pcu.c
....@@ -101,6 +101,7 @@
101101 /**
102102 * ath5k_hw_get_frame_duration() - Get tx time of a frame
103103 * @ah: The &struct ath5k_hw
104
+ * @band: One of enum nl80211_band
104105 * @len: Frame's length in bytes
105106 * @rate: The @struct ieee80211_rate
106107 * @shortpre: Indicate short preample
....@@ -670,7 +671,7 @@
670671 break;
671672 case NL80211_IFTYPE_ADHOC:
672673 AR5K_REG_ENABLE_BITS(ah, AR5K_TXCFG, AR5K_TXCFG_ADHOC_BCN_ATIM);
673
- /* fall through */
674
+ fallthrough;
674675 default:
675676 /* On non-STA modes timer1 is used as next DMA
676677 * beacon alert (DBA) timer and timer2 as next
....@@ -913,7 +914,7 @@
913914 pcu_reg |= AR5K_STA_ID1_KEYSRCH_MODE
914915 | (ah->ah_version == AR5K_AR5210 ?
915916 AR5K_STA_ID1_PWR_SV : 0);
916
- /* fall through */
917
+ fallthrough;
917918 case NL80211_IFTYPE_MONITOR:
918919 pcu_reg |= AR5K_STA_ID1_KEYSRCH_MODE
919920 | (ah->ah_version == AR5K_AR5210 ?
....@@ -945,7 +946,6 @@
945946 * ath5k_hw_pcu_init() - Initialize PCU
946947 * @ah: The &struct ath5k_hw
947948 * @op_mode: One of enum nl80211_iftype
948
- * @mode: One of enum ath5k_driver_mode
949949 *
950950 * This function is used to initialize PCU by setting current
951951 * operation mode and various other settings.