staging: wfx: request to send beacons in IBSS mode
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Fri, 10 Apr 2020 13:32:31 +0000 (15:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Apr 2020 12:42:44 +0000 (14:42 +0200)
Currently, firmware take in charge of start/stop sending beacons while
in IBSS mode. However, this behavior may change in the further releases.

Currently, asking to firmware to send beacon while in IBSS mode return
an error but is harmless.

Therefore, send this request unconditionally.

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

index 7af7bfa4ac991ff0dfbfed28379881ec615a9cb8..3512e59f096834f94660221a0b44aca7d5703e85 100644 (file)
@@ -697,8 +697,7 @@ void wfx_bss_info_changed(struct ieee80211_hw *hw,
            changed & BSS_CHANGED_BEACON)
                wfx_upload_ap_templates(wvif);
 
-       if (changed & BSS_CHANGED_BEACON_ENABLED &&
-           wvif->state != WFX_STATE_IBSS)
+       if (changed & BSS_CHANGED_BEACON_ENABLED)
                wfx_enable_beacon(wvif, info->enable_beacon);
 
        if (changed & BSS_CHANGED_BEACON_INFO)