iwlwifi: read the Rx write pointer only once
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 25 Nov 2012 12:42:25 +0000 (14:42 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 28 Nov 2012 14:34:27 +0000 (15:34 +0100)
commit52e2a99eee77cc4a47e183eb7f5102301a31e282
treeeaaa0795fee04da8408f4c4220fca378a50cdb23
parenteea54c8ec971d4759c541dba351477dafc39ce54
iwlwifi: read the Rx write pointer only once

The FH (DMA engine) tells the driver the index of the last
ready (closed) Rx buffer. This data is in closed_rb_num.
If we read this data several times we may get inconsistencies
between the code and the debug prints which can make it
harder to debug issues here.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/pcie/rx.c