ath9k_hw: remove code duplication in phy error counter handling