Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4875d30d authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville
Browse files

mac80211: clean up uAPSD TX code



Clean up the code formatting and also replace
the constant 0 by IEEE80211_AC_VO.

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 98aed9fd
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -230,9 +230,9 @@ ieee80211_tx_h_dynamic_ps(struct ieee80211_tx_data *tx)
	 * changed via debugfs, user needs to reassociate manually to have
	 * changed via debugfs, user needs to reassociate manually to have
	 * everything in sync.
	 * everything in sync.
	 */
	 */
	if ((ifmgd->flags & IEEE80211_STA_UAPSD_ENABLED)
	if ((ifmgd->flags & IEEE80211_STA_UAPSD_ENABLED) &&
	    && (ifmgd->uapsd_queues & IEEE80211_WMM_IE_STA_QOSINFO_AC_VO)
	    (ifmgd->uapsd_queues & IEEE80211_WMM_IE_STA_QOSINFO_AC_VO) &&
	    && skb_get_queue_mapping(tx->skb) == 0)
	    skb_get_queue_mapping(tx->skb) == IEEE80211_AC_VO)
		return TX_CONTINUE;
		return TX_CONTINUE;


	if (local->hw.conf.flags & IEEE80211_CONF_PS) {
	if (local->hw.conf.flags & IEEE80211_CONF_PS) {