mwifiex: don't drop carrier flag over suspend
authorDaniel Drake <dsd@laptop.org>
Tue, 19 Feb 2013 20:09:47 +0000 (15:09 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 22 Feb 2013 19:50:46 +0000 (14:50 -0500)
commit1499d9fa54a41942973bfc2c4ab12ccc5f1e15de
tree92ecc282d181ec742e32ee49fc99bd2f63191813
parentb53cf458ea20dd7f5e32611366f63728e40c9021
mwifiex: don't drop carrier flag over suspend

If the system suspends with mwifiex wifi powered on, and is then woken
by an ICMP ping packet, the ping response is discarded by the kernel
because the kernel incorrectly thinks there is no carrier.

I can't see any valid reason to want to report loss of carrier here,
so remove the offending code.

Fixes http://dev.laptop.org/ticket/12554

Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/pcie.c
drivers/net/wireless/mwifiex/sdio.c