There's no laws about it. It's mostly a "handshake agreement" enforced via the WiFi Alliance. You go through the WFA certification process to get the "WiFi Certified" sticker.
https://www.wi-fi.org/certificationUsually large vendors try to do the right thing.