If your AP is only an AP, it should not take care of DHCP.
So you should get all clients on your DHCP server, I guess the openwrt. Visible on the status/overview page of openwrt. Also stored in /tmp/dhcp.leases.
It will only work for client using DHCP for network config.
I do get the MAC & IP address from /tmp/dhcp.leases
From there how do I find out if client is connected over 5Ghz or 2.4Ghz. That's my original question.
As psherman pointed out, the answer is no, fullstop.
The information which band is used doesn't go past the AP taking its signal, after that it's normal ethernet traffic - with the same MAC address regardless of the band (for many reasons, but your client only has a single radio, a single wireless MAC).
Since the WiFi is not on the OpenWRT router, doesn't seem any radio information likely to be available.
I might do a profiling on apring response time between router and client over both GHzs and see if it differs enough. A 5Ghz should have faster response time.
No, this won't work reliably. The response time will very much depend on the physical proximity, signal quality, and also the device itself (i.e. a mobile device may have long response times when it is sleeping, etc.).
If I get your drift...
This appears to be a popular question on different forums.
The verdict seems to be that there IS certain pattern to be found between MAC addresses of 5 Vs 2.4 Ghz's, but its different for each vendor, and not documented. In that case, this way doesn't seem to be worth pursuing.
On concurrent-dualband routers/ APs, yes - but those have two independent radios (even if DBDC), which each get their own MAC. Your typical client only has a single (dualband) radio, with a single MAC, which doesn't change just because you change channels or bands.
Further building on what @slh said, and dispelling the idea that you can simply us a MAC address lookup to see if something belongs to an AC or N radio...
A client device that is AC will almost always be dual-band... while they will typically attempt to use 5G whenever possible, actual conditions with respect to signal quality will often cause them to dynamically switch between 2.4G and 5G radio links.
An 802.11n based device can still be dual-band. 802.11n was the 2nd standard (in the consumer device category) to the use 5GHz (the first was 802.11a).
As has been stated numerous times now, you cannot, under any circumstances, determine the band that a given client is using without some access to the AP's status (i.e. ssh or web interface + a method to read and interpret the data).
I'll add that it often doesn't even matter unless your intent is to tune the radio system and/or placement to improve performance. Dual band clients will (usually) select the band that gives them the best performance (2.4G is more resillient through walls and has greater range, 5G is faster when conditions allow). And of course, you can easily deduce the band or single band devices (which are almost always 2.4G only, and will typically have that in the product specs if you actually need to know).
One use case could be that if a user complains of slow internet, I would like to quickly check if the user's device is connected/limited to 2.4GHz.
This may not be always the rootcause of slow internet, but often times it is.
Then you need to log onto the wifi AP to find out. If it doesn't give you that information, you can either deal with the lack of info, or you can buy a device that can provide you with that information and/or one that is supported by OpenWrt which could then report that data.