[9610] wlbt : Initialization of Newly Introduced cfg80211_roam_info structure from...
authorMohit Ghuley <mohit.ghuley@samsung.com>
Tue, 3 Jul 2018 12:42:02 +0000 (18:12 +0530)
committerWooyeon Kim <wooy88.kim@samsung.com>
Fri, 6 Jul 2018 01:43:21 +0000 (10:43 +0900)
From Kernel 4.12.0, a new structure named cfg80211_roam_info
has been introduced in CFG.
cfg80211_roam_info structure is passed in cfg80211_roamed()
API call from Driver.

But, While initializing this structure in SLSI Wifi Driver,
sta_bss info should not be populated, because the new roamed
sta_bss info is retrieved later via cfg80211_get_bss() API
call from sme.

Change-Id: I65d6cf4de6f67ef055f7051c1e89278a6e11a692
SCSC-Bug-Id:SSB-41479
Signed-off-by: Mohit Ghuley <mohit.ghuley@samsung.com>
drivers/net/wireless/scsc/rx.c

index 8d436f3405eaaea7017a12dccc47879d679671bf..e63f1c465057e38828a78d979e6c3a65181201e9 100755 (executable)
@@ -930,8 +930,11 @@ void slsi_rx_roamed_ind(struct slsi_dev *sdev, struct net_device *dev, struct sk
                SLSI_NET_DBG3(dev, SLSI_MLME, "cfg80211_roamed()\n");
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0))
+               /* cfg80211 does not require bss pointer in roam_info.
+                * If bss pointer is given in roam_info, cfg80211 bss
+                * data base goes bad and results in random panic.
+                */
                roam_info.channel = ndev_vif->sta.sta_bss->channel;
-               roam_info.bss = ndev_vif->sta.sta_bss;
                roam_info.bssid = peer->address;
                roam_info.req_ie = assoc_ie;
                roam_info.req_ie_len = assoc_ie_len;