Variable &(mac) not working?

My company uses the hotspot to manage our customers, i need to be able to pass the unauthenticated mac to the authentication server via a http string.

I should be able to do:

http://serveraddress.com/index.html?mac=$(mac)

but the hotspot does not correct the value like is supposed to… any help?