beagleboard / linux

The official Read Only BeagleBoard and BeagleBone kernel repository https://git.beagleboard.org/beagleboard/linux
http://beagleboard.org/source
Other
715 stars 566 forks source link

Add support to simultaneous AP and mesh roles with wl18xx #230

Open JoseGoncalves opened 4 years ago

JoseGoncalves commented 4 years ago

Currently, with kernel 4.19, it's not possible to set wl18xx devices in AP + Mesh mode. To accomplish that the following patch must be applied:

diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c
index 496b9b63cea1..db5bc51ce51c 100644
--- a/drivers/net/wireless/ti/wl18xx/main.c
+++ b/drivers/net/wireless/ti/wl18xx/main.c
@@ -1905,12 +1905,14 @@ wl18xx_iface_combinations[] = {
        .max_interfaces = 3,
        .limits = wl18xx_iface_limits,
        .n_limits = ARRAY_SIZE(wl18xx_iface_limits),
+       .beacon_int_min_gcd = 1,
        .num_different_channels = 2,
    },
    {
        .max_interfaces = 2,
        .limits = wl18xx_iface_ap_limits,
        .n_limits = ARRAY_SIZE(wl18xx_iface_ap_limits),
+       .beacon_int_min_gcd = 1,
        .num_different_channels = 1,
        .radar_detect_widths =  BIT(NL80211_CHAN_NO_HT) |
                    BIT(NL80211_CHAN_HT20) |

See the following post in TI's Wi-Fi Forum for extra details:

WL1835MOD: Unable to activate simultaneous AP and mesh roles

pdp7 commented 4 years ago

@JoseGoncalves thanks

@RobertCNelson include this in the next release?

JoseGoncalves commented 3 years ago

This and other mesh related patches are now available in TI's Git repository:

https://git.ti.com/cgit/wilink8-wlan/build-utilites/tree/patches/kernel_patches/4.19.38?h=r8.8