[NEUS7920-477] [9610] wlbt: Kernel panic when sta_bss expires
authorSrishti Piplani <srishti.p@samsung.com>
Thu, 16 May 2019 13:37:46 +0000 (19:07 +0530)
committerKim Gunho <gunho.kim@samsung.com>
Fri, 28 Jun 2019 14:46:14 +0000 (23:46 +0900)
when sta_bss expires in cfg , and when connect is received, connect scan to be triggered.

SCSC-Bug-Id: SSB-52829

Change-Id: I6850274999745d4bbaa2c62579abfbb3c3fb2fe9
Signed-off-by: Srishti Piplani <srishti.p@samsung.com>
drivers/net/wireless/scsc/cfg80211_ops.c

index 51128af07c4c413d7ff0c8440ff9bcf657810641..5379435cf9ed77806e49d9520bfe4ece1b27b230 100755 (executable)
@@ -989,7 +989,6 @@ int slsi_connect(struct wiphy *wiphy, struct net_device *dev,
 #endif
                                                 capability);
        if (!ndev_vif->sta.sta_bss) {
-               if (!sme->bssid) {
                        struct cfg80211_ssid ssid;
 
                        SLSI_NET_DBG3(dev, SLSI_CFG80211, "BSS info is not available - Perform scan\n");
@@ -1020,10 +1019,6 @@ int slsi_connect(struct wiphy *wiphy, struct net_device *dev,
                        }
                        channel = ndev_vif->sta.sta_bss->channel;
                        bssid = ndev_vif->sta.sta_bss->bssid;
-               } else {
-                       /* The cfg80211 timeout for bss is 3 seconds so the sta_bss can be NULL */
-                       SLSI_NET_DBG1(dev, SLSI_CFG80211, "sta_bss is not available for %.*s, %pM\n", (int)sme->ssid_len, sme->ssid, sme->bssid);
-               }
        } else {
                channel = ndev_vif->sta.sta_bss->channel;
                bssid = ndev_vif->sta.sta_bss->bssid;