this is more of a firewall issue but it affects some how the wireless interface so I'm going to post it here
my firewall setup can be seen in attached files
when rules on the LAN interface setup first time everything works OK but after reboot I get this message in dmesg:
ipfw2 (+ipv6) initialized, divert loadable, nat loadable, rule-based forwarding enabled, default to accept, logging disabled
rule 2: setsockopt(IP_FW_DEL)
rule 3: setsockopt(IP_FW_DEL)
when the router is up my wireless wont work. I'm getting dhcp ip address and all other info right but I can connect to the firewall or internet.
Looks like this error makes firewall do something to the wireless interface. Wireless is bridged to LAN
removing and recreating these rules would fix the problem.