ath5k hostapd AP problem, ping: sendmsg: Operation not permitted
I have an issue regarding setting up an AP with ath5k driver and hostapd.
Both my compat wireless code and hostapd code are from latest git and after following the instructions i managed to set up an AP with nl80211 and for the sake of simplicity, i turned off key encryption.
I set up the AP on one laptop, gave it a static IP and then set up a wlan STA on another notebook with a static IP. I appropriately chose the subnet masks and gateways to support a wlan connection and my routing tables are also properly configured (got it confirmed from our netwtork admin). The sta can associate to AP but no ping messages are sent. If i send a ping message from sta, it shows unsuccessful pings while from AP side,upon pinging the sta, i get message that
ping: sendmsg: Operation not permitted
dmesg from both client and AP side shows no strange messages. Also each wlan entity can ping itself successfully but they can not ping each other and i guess problem is on hostapd side.
any one with any clues and pointers about how to get rid of it??