iwlwifi: allocated rx page accounting cleanup
authorZhu Yi <yi.zhu@intel.com>
Thu, 10 Dec 2009 22:37:21 +0000 (14:37 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 21 Dec 2009 16:31:55 +0000 (11:31 -0500)
commit64a76b504b04b5da16d1e7658a95dd126594e02f
tree88f458acc3d304fc0d625ea4eecf816ed0f7bc28
parentd24deb2580823ab0b8425790c6f5d18e2ff749d8
iwlwifi: allocated rx page accounting cleanup

In iwlwifi, priv->alloc_rxb_page is used to keep track of the Rx
pages allocated by the driver. This cleans up the page free routines
by introducing __iwl_free_pages/iwl_free_pages so that the accounting
is more accurate and less error prone. This also fixes two instances where
the counter was not updated.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-3945.c
drivers/net/wireless/iwlwifi/iwl-dev.h
drivers/net/wireless/iwlwifi/iwl-hcmd.c
drivers/net/wireless/iwlwifi/iwl-rx.c
drivers/net/wireless/iwlwifi/iwl-scan.c
drivers/net/wireless/iwlwifi/iwl-sta.c
drivers/net/wireless/iwlwifi/iwl3945-base.c