aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/recv.c
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2008-08-11 04:35:08 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-08-29 16:23:59 -0400
commit672840ac04f79f499b60b9f0eb41799c837db4eb (patch)
treeabea21f851556acbf16d217f2849577399610654 /drivers/net/wireless/ath9k/recv.c
parentb4696c8b9233bea812b972a5e79c5db7ecf13867 (diff)
ath9k: Use bitfields for sc operations
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/recv.c')
-rw-r--r--drivers/net/wireless/ath9k/recv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath9k/recv.c b/drivers/net/wireless/ath9k/recv.c
index 6d1d5035f159..9c7583210e36 100644
--- a/drivers/net/wireless/ath9k/recv.c
+++ b/drivers/net/wireless/ath9k/recv.c
@@ -724,7 +724,7 @@ int ath_rx_input(struct ath_softc *sc,
724 struct ath_recv_status *rx_status, 724 struct ath_recv_status *rx_status,
725 enum ATH_RX_TYPE *status) 725 enum ATH_RX_TYPE *status)
726{ 726{
727 if (is_ampdu && sc->sc_rxaggr) { 727 if (is_ampdu && (sc->sc_flags & SC_OP_RXAGGR)) {
728 *status = ATH_RX_CONSUMED; 728 *status = ATH_RX_CONSUMED;
729 return ath_ampdu_input(sc, an, skb, rx_status); 729 return ath_ampdu_input(sc, an, skb, rx_status);
730 } else { 730 } else {
@@ -1132,7 +1132,7 @@ int ath_rx_aggr_start(struct ath_softc *sc,
1132 rxtid = &an->an_aggr.rx.tid[tid]; 1132 rxtid = &an->an_aggr.rx.tid[tid];
1133 1133
1134 spin_lock_bh(&rxtid->tidlock); 1134 spin_lock_bh(&rxtid->tidlock);
1135 if (sc->sc_rxaggr) { 1135 if (sc->sc_flags & SC_OP_RXAGGR) {
1136 /* Allow aggregation reception 1136 /* Allow aggregation reception
1137 * Adjust rx BA window size. Peer might indicate a 1137 * Adjust rx BA window size. Peer might indicate a
1138 * zero buffer size for a _dont_care_ condition. 1138 * zero buffer size for a _dont_care_ condition.
@@ -1232,7 +1232,7 @@ void ath_rx_aggr_teardown(struct ath_softc *sc,
1232 1232
1233void ath_rx_node_init(struct ath_softc *sc, struct ath_node *an) 1233void ath_rx_node_init(struct ath_softc *sc, struct ath_node *an)
1234{ 1234{
1235 if (sc->sc_rxaggr) { 1235 if (sc->sc_flags & SC_OP_RXAGGR) {
1236 struct ath_arx_tid *rxtid; 1236 struct ath_arx_tid *rxtid;
1237 int tidno; 1237 int tidno;
1238 1238
@@ -1264,7 +1264,7 @@ void ath_rx_node_init(struct ath_softc *sc, struct ath_node *an)
1264 1264
1265void ath_rx_node_cleanup(struct ath_softc *sc, struct ath_node *an) 1265void ath_rx_node_cleanup(struct ath_softc *sc, struct ath_node *an)
1266{ 1266{
1267 if (sc->sc_rxaggr) { 1267 if (sc->sc_flags & SC_OP_RXAGGR) {
1268 struct ath_arx_tid *rxtid; 1268 struct ath_arx_tid *rxtid;
1269 int tidno, i; 1269 int tidno, i;
1270 1270