[9610] wlbt: monitor mode - type: Radio tap
authorDebabrata Purohit <d.purohit@samsung.com>
Wed, 27 Jun 2018 13:35:21 +0000 (14:35 +0100)
committerhskang <hs1218.kang@samsung.com>
Fri, 17 Aug 2018 00:32:50 +0000 (20:32 -0400)
Change the interface encapsulation type to
Radio tap for monitor interface.

SCSC-Bug-Id: SSB-41477
Change-Id: Iffbb0a404cc99a77c3b116705db29687141008b8
Signed-off-by: Debabrata Purohit <d.purohit@samsung.com>
drivers/net/wireless/scsc/mgt.c

index c2311282d852278fbe4598614af186b06729151f..3b582a53ddbf5234f0338516133fbb68b043a20a 100755 (executable)
@@ -271,12 +271,15 @@ int slsi_start_monitor_mode(struct slsi_dev *sdev, struct net_device *dev)
        }
 
        /* set the link type for the device; it depends on the format of
-        * packet the firmware is going to Pass to Host. When the firmware
-        * adds PTAP header to MA data units, then the link type shall
-        * change to reflect that.
-        * i.e. dev->type = ARPHRD_IEEE80211_RADIOTAP;
+        * packet the firmware is going to Pass to Host.
+        *
+        * If the firmware passes MA data in 802.11 frame format, then
+        * dev->type = ARPHRD_IEEE80211;
+        *
+        * If the firmware adds Radio TAP header to MA data,
+        * dev->type = ARPHRD_IEEE80211_RADIOTAP;
         */
-       dev->type = ARPHRD_IEEE80211;
+       dev->type = ARPHRD_IEEE80211_RADIOTAP;
        ndev_vif->activated = true;
        return 0;
 }