According to Does wireless traffic in a network still have to go through a switch?, packets sent between devices connected to the same AP still goes through the AP. My question is how exactly does the AP handles the switching of such packets, or more precisely, what is the path taken by these packets? Do they gets handled inside the wireless adapters? Do they get handled by the driver? Do they travel all the way to the OS network stack and gets handled there?
I'm particularly interested in whether they go through the network stack. Since if they do then it is possible to use things like netfilter to filter L2 traffic on the WLAN. (And if they don't it won't be possible)