mwifiex: fix IBSS data path issue.
authorchunfan chen <jeffc@marvell.com>
Thu, 7 Jan 2016 07:40:48 +0000 (23:40 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 May 2016 21:49:09 +0000 (14:49 -0700)
commit0af7d2fc9dd15f67c8fec0a817c033b0ee66e70f
treea3be5192f54b5b7f0c75841dc4721e99106a856d
parent0203ecf1fd3040cf8f2ea3d248036ed9f12c72dc
mwifiex: fix IBSS data path issue.

commit dc386ce76dedaeeaaf006fceb6ed8cf2e20ff026 upstream.

The port_open flag is not applicable for IBSS mode. IBSS data
path was broken when port_open flag was introduced.
This patch fixes the problem by correcting the checks.

Fixes: 5c8946330abfa4c ("mwifiex: enable traffic only when port is open")
Signed-off-by: chunfan chen <jeffc@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/marvell/mwifiex/sta_event.c
drivers/net/wireless/marvell/mwifiex/wmm.c