]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k_htc: Fix error handling in add_interface
authorSujith Manoharan <Sujith.Manoharan@atheros.com>
Mon, 21 Feb 2011 02:18:16 +0000 (07:48 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 23 Feb 2011 21:25:26 +0000 (16:25 -0500)
commit13648e1f654bc91a67c229d768edd843c367644e
treeaeb94d7c9e9b5c92a57f5b1817f4bcd349b2fc40
parent3b61fb2bc20c54a784dd6cb62589d3e588a66a37
ath9k_htc: Fix error handling in add_interface

Addition of a station might fail - handle this error
properly by removing the VAP on the target.
Also, bail out immediately if the max. no of interfaces
has been reached.

Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc_drv_main.c