iwlwifi: range check to testmode direct reg access
authorAmit Beka <amit.beka@intel.com>
Wed, 25 Jan 2012 07:19:24 +0000 (09:19 +0200)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Thu, 2 Feb 2012 22:38:42 +0000 (14:38 -0800)
commit6fe7dd0db0af18a8792d8551fd19a184f39a732c
tree21148f5a99ef428ee439dbf0a626186d7d2f3d18
parentf057ac4ed77d3390b517ee2be8e88615b9994272
iwlwifi: range check to testmode direct reg access

Added a check on the direct register access.
Checks that the address is in the lower ragnge (0x0-0x2000),
which belongs to CSR, HBUS and FH registers.

Signed-off-by: Amit Beka <amit.beka@intel.com>
Signed-off-by: Wey-Yi W Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-testmode.c