It'll have a region set by the manufacturer in it's firmware. IEEE 802.11d-2001 also added country information to AP beacons and probes. Nearby access points will advertise a country code to each other. Hostapd and/or the Wi-Fi device firmware can take advantage of that.