staging: wfx: declare support for TDLS
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Mon, 13 Sep 2021 13:01:40 +0000 (15:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Sep 2021 07:16:32 +0000 (09:16 +0200)
Since the firmware API 3.8, the device is able to support TDLS.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20210913130203.1903622-10-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/main.c

index 4b9fdf9..0a9d02d 100644 (file)
@@ -440,6 +440,9 @@ int wfx_probe(struct wfx_dev *wdev)
        wdev->hw->wiphy->n_addresses = ARRAY_SIZE(wdev->addresses);
        wdev->hw->wiphy->addresses = wdev->addresses;
 
+       if (!wfx_api_older_than(wdev, 3, 8))
+               wdev->hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_TDLS;
+
        err = ieee80211_register_hw(wdev->hw);
        if (err)
                goto err1;