ath9k: General code scrub
Replace TRUE/FALSE macros with VALID/INVALID macros. Follow a consistent variable convention. Remove unnecessary comments. Add all RC phy macros into a single enum. Merge functions into reasonably sized entities. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
@@ -536,7 +536,7 @@ static void ath_buf_set_rate(struct ath_softc *sc, struct ath_buf *bf)
|
||||
* just CTS. Note that this is only done for OFDM/HT unicast frames.
|
||||
*/
|
||||
if (sc->sc_protmode != PROT_M_NONE && !(bf->bf_flags & ATH9K_TXDESC_NOACK)
|
||||
&& (rt->info[rix].phy == WLAN_PHY_OFDM ||
|
||||
&& (rt->info[rix].phy == WLAN_RC_PHY_OFDM ||
|
||||
WLAN_RC_PHY_HT(rt->info[rix].phy))) {
|
||||
if (sc->sc_protmode == PROT_M_RTSCTS)
|
||||
flags = ATH9K_TXDESC_RTSENA;
|
||||
|
Reference in New Issue
Block a user