]> git.baikalelectronics.ru Git - kernel.git/commit
libertas: fix errors in functions accessing module registers
authorOlivier Sobrie <olivier@sobrie.be>
Sat, 9 Jul 2011 10:57:05 +0000 (12:57 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Jul 2011 19:02:16 +0000 (15:02 -0400)
commit132f5c1dacbfb314561d39508b449aef4f4eb82f
tree277df7b98fe9ac63c4f21ed1e03c0de2d6854036
parentc4eb07bdaf28f3d81b593087f743948ab79551b3
libertas: fix errors in functions accessing module registers

Problems located in the two functions lbs_set_reg() and lbs_get_reg():
- The offset field of struct cmd_ds_reg_access was not filled in
- The test on the return code of lbs_cmd_with_response() in function
  lbs_get_reg() was inverted

Signed-off-by: Olivier Sobrie <olivier@sobrie.be>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cmd.c