]> git.baikalelectronics.ru Git - kernel.git/commit
iwlagn: simplify error table reading
authorJohannes Berg <johannes.berg@intel.com>
Wed, 13 Apr 2011 10:14:43 +0000 (03:14 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 22 Apr 2011 17:02:19 +0000 (10:02 -0700)
commit09bbc340905c478a67f190317a1f1d1f3475d817
tree6d579e24d715096e9553557abcb1f90ffc7d8365
parentdc8e81a3bbea965c7a193b8beec624a498e5d95c
iwlagn: simplify error table reading

The current code to read the error table header
just hardcodes all the offsets, which is a bit
hard to understand. We can read in the entire
header (as much as we need) into a structure,
and then take the data from there, which makes
it easier to understand. To read a bigger blob
we also don't need to grab NIC access for each
word read, making the code more efficient.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-commands.h
drivers/net/wireless/iwlwifi/iwl-io.c
drivers/net/wireless/iwlwifi/iwl-io.h