Broken packets on lan bridge may be caused by second gmac patches without setting both gmacs to same rgmii-mode
Yes, it was solved here: OpenWrt 18.06 malformed ip packets at bridged interface
The problem was to find image or at least repository (and branch) that has the patch applied. I found at least three git clones of openwrt related to bpi-r2ā¦ This is so confusing for someone who is new to this platform. And then even the subject of this topic is confusing. I should be: Wifi working fine, but you have to do some woodo before !
youāve seen that this topic is ubuntu-related and not lede/openwrt? the official ubuntu does not use second gmac patches from openwrt/lede that break 1st gmac (lan)
Not really. I thought this is about the wifi in general, not ubuntu specific. Sorry for drifting off-topic. However one important finding that might be useful for all platforms. There has to be some significant delay between stp_uart_launcher and āecho Aā. Otherwise hostapd does not work properly, and clients cannot associate. (That was another two hours wondering why something that worked once does not work any more)ā¦ EDIT: it was maybe not the delay (10s seems to be enough after all), but hw_mode=g that broke it. hw_mode=a or =b (default seems to be OK). But also stopping and starting hostap breaks it too. EDIT2: it seems quite random, after stopping hostap, I have to reste the driver with echo 0/echo A. And then run hostapd again (with different options - a/b/g/channels/wpa/etcā¦) Sometimes it works, sometimes not, and no error is logged anywhere. while Iām writing it started to work by itself, and client connected. Maybe something takes too much time? Also almost all bandwidth tests made the wifi stop doing anything, and while stopped associations (wpa2 handshake) failed. I thought about lack of entropy - but I have hwrng and rngd working, rngtest on /dev/random looks good. Tried wifi without encryption and it is the same - a few seconds of bandwith test and it gets stuckā¦ Any ideas?
i have running hostapd on ap0 with hw-mode=g and using this script to start wifi (including hostapd)
/etc/hostapd/hostapd_ap0.conf:
interface=ap0
driver=nl80211
ssid=r2_AP0
hw_mode=g
channel=13
auth_algs=1
#ignore_broadcast_ssid=0
wpa=2
wmm_enabled=1
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
Thank you, the script looks really fool-proof. Is the wifi stable on your system? Is there a way how to check if I have the latest version of driver & firmware?
Imho there is only one firmware and driver is only ported by me to higher kernel-versions and optimized by some people like @lexa2 but that makes driver not ānewerā
@vladislav_kurz This is unfortunate state that the driver weāve got on hands is in. It is by no means end-user ready and wonāt ever get to that level of quality unless someone from Mediatek linux team steps in and helps us to either do a complete rewrite of this driver or at the very least patch the existing one to the later version of codebase Mediatek propably have got available internally. Base for the driver was an Android source code published for some other device using the same wifi chipset that was hackedānāpatched by @sinovoip representatives to be buildable under linux 4.14. No bug fixes were done to the driver itself since then except for porting it to the ever-changing internal APIs coming with new linux kernel versions. If you want to have more-or-less stable WiFi on BPi-R2 - better option would be to buy PCIEx wlan module with a chipset that had known good support in vanilla linux kernel.
Gary ported to 4.9ā¦all higher porting was done by me (and 4.14 was very hard because this were my first steps in driver development and git)
Thank you guys for the work you did, and info you gave me.
I got message from another user that he asks a wifi driver developer from openwrt what needs to be done. Currently workload is estimatedā¦
@LeXa2 - following your advice I have bought intel 7260, which I know works well under Linux (Debian), but I canāt get it working on openwrt. Iwlwifi driver depends on cfg80211 and that cannot be loaded due to: cfg80211: exports duplicate symbol __cfg80211_alloc_event_skb (owned by kernel)
As if some patches specific to banana Pi, duplicate cfg80211 functions. Is there anything I should tweak in the config before compilation?
bad news, wifi-driver will not be rewritten by openwrt-developer, so we stay on that buggy driver
@vladislav_kurz as it works with debian there is anything openwrt specificā¦you can search for EXPORT_SYMBOL(your function name) and disable it for this function
Where should I search? In the sources? And just comment it and compile again?
Right,you should find 2 such lines
grep -Rni 'EXPORT_SYMBOL(...)' .
Hello frank-w, hello all,
I appriciate your effort to make a bunch of description, helper, how toās, images, kernelsā¦ All of them are very useful! Thank you! Iād have a short question! Iām able to configure all lan ports in br0, and ap0 also, and make them working via DHCP. Under /etc/hostap.d/interfaces.conf are 2,4 GHz and 5ghz ap0 configured. But only the last, 5ghz is running, if I start all stuff for wifi. Anyway, itās working only for just 2,4 GHz, if I remove settings for 5ghz. It is possible to run both (2,4 and 5) in AP mode? Best regards, furumc
You can only start 1 ap on internal wifi card (2.4 or 5ghz). Imho ap0 only supports a-mode and no acā¦
And do not bridge ap0ā¦use routing instead
What do you mean no acā¦? Why do you suggest I should use route instead of bridge? Is it not stable enough? What is the logic behind it? With pcie wifi card, which you mentioned before or other one, is it possible to make 2,4 GHz and 5 GHz spreading simultaneously?
There are several reports that wifi does not work after bridging ap0ā¦
Ah ok,ac was only dualband simultanouslyā¦i thought it was completely different mode
I have a cheap mt7612 wifi-card in pcie slotā¦not the best but enough for my 2-3 simultanous clients (only smartphones and tablet). I use ap0 for 2g4 and the pcie card for 5g
Hi!
In my setup everything is Ok (5.3-wifi and all previous iāve tested)
2.4Ghz hostapd.conf:
interface=ap0
driver=nl80211
ssid=<my-ap>
hw_mode=g
#ht_capab=[HT40+][SHORT-GI-20][SHORT-GI-40]
#vht_oper_chwidth=1
#vht_oper_centr_freq_seg0_idx=42
#force_ht40=0
#ieee80211n=1
#ieee80211ac=1
#ieee80211d=1
country_code=US
channel=6
macaddr_acl=0
wmm_enabled=1
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
wpa_passphrase=<mypasswd>
and
brctl addif br0 ap0
after hostapd is started
Same for me and both aps bridged to same br0 bridge.