UBUNTU: SAUCE: rsi: Fix for wowlan hibernate resume issue
While resuming from hibernate, observed a system hang due to
a wait event for wlan initialization, which will not happen at this
instant, due to that an infinite wait is happening. Removed that
redundant wait event.
5c36c29...
by
Sanjay Kumar Konduri <email address hidden>
rsi: Add null check for virtual interfaces in wowlan config
When the "poweroff" command is executed after wowlan enabled, we have
observed a system crash. In the system "poweroff" sequence, network-manager
is sent to inactive state by cleaning up the network interfaces, using
rsi_mac80211_remove_interface() and when driver tries to access those
network interfaces in rsi_wowlan_config() which was invoked by SDIO
shutdown, results in a crash. Added a NULL check before accessing the
network interfaces in rsi_wowlan_config().
The linkage between the bluetooth driver and the wireless
driver is not defined properly, leading to build problems
such as:
warning: (BT_HCIRSI) selects RSI_COEX which has unmet direct dependencies (NETDEVICES && WLAN && WLAN_VENDOR_RSI && BT_HCIRSI && RSI_91X)
drivers/net/wireless/rsi/rsi_91x_main.o: In function `rsi_read_pkt':
(.text+0x205): undefined reference to `rsi_bt_ops'
As the dependency is actually the reverse (RSI_91X uses
the BT_RSI driver, not the other way round), this changes
the dependency to match, and enables the bluetooth driver
from the RSI_COEX symbol.
Fixes: 38aa4da50483 ("Bluetooth: btrsi: add new rsi bluetooth driver")
Acked-by; Marcel Holtmann <email address hidden>
Signed-off-by: Arnd Bergmann <email address hidden>
Signed-off-by: Kalle Valo <email address hidden>
(cherry picked from commit 255dd5b79d5474dad3ecebe99be7818684921abd)
Signed-off-by: Shrirang Bagul <email address hidden>