iwlegacy: fix IBSS cleanup
authorStanislaw Gruszka <sgruszka@redhat.com>
Wed, 16 Jan 2013 10:45:15 +0000 (11:45 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 22 Jan 2013 19:33:43 +0000 (14:33 -0500)
commitfa4cffcba9e13798ed7c6b8526b91b1631ecb53e
tree5d85e6aec81d86af4d6728915804304c5eb41955
parentead0ad1648990638e624f57d446f1fa4c577d87d
iwlegacy: fix IBSS cleanup

We do not correctly change interface type when switching from
IBSS mode to STA mode, that results in microcode errors.

Resolves:
https://bugzilla.redhat.com/show_bug.cgi?id=886946

Reported-by: Jaroslav Skarvada <jskarvad@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlegacy/common.c