Fix certain NULL dereference in disabled XR code
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Wed, 3 Aug 2011 00:47:06 +0000 (00:47 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Wed, 3 Aug 2011 00:47:06 +0000 (00:47 +0000)
Make it even more clear that the code is disabled.  Found by coccinelle.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4155 0192ed92-7a03-0410-a25b-9323aeb14dbd

ath/if_ath.c

index 8d0716d8594a4e121811ad5f66625f405a0c04ae..3ff78bcc79a68785da55a9f4b7dc8fb2af28144c 100644 (file)
@@ -6207,7 +6207,7 @@ ath_node_move_data(const struct ieee80211_node *ni)
                                                /* NB: last descriptor */
                                                ds = prev->bf_desc;
 #endif
-                                               ts = &bf->bf_dsstatus.ds_txstat;
+                                               ts = &prev->bf_dsstatus.ds_txstat;
                                                status = ath_hal_txprocdesc(
                                                                ah, ds, ts
                                                                );
@@ -6402,7 +6402,7 @@ ath_node_move_data(const struct ieee80211_node *ni)
                DPRINTF(sc, ATH_DEBUG_XMIT_PROC, 
                                "moved %d buffers from XR to NORMAL\n"m count);
        }
-#endif
+#endif /* NOT_YET */
        return 0;
 }
 #endif