I want to use my Raspberry Pi as a bridge between eth0 and wlan0. My goal is to wire connect the Pi to my home router and to cast Wi-Fi with it, eventually getting access to the internet by this Wi-Fi (similar to hotspot but in layer 2).
It's important the connection be in layer 2. I want the devices connected to the Pi, to get IP addresses from my home router.
I've tried using bridge-util but couldn't connect wlan0 to the bridge and got an error:
sudo brctl addif br0 wlan0 eth0
can't add wlan0 to bridge br0: Operation not supported...
Any ideas how to make this kind of bridge?