Maybe something like bluetooth pairing could work for wifi. Eg you would press a button on the device, and it would broadcast a "request to join network" message. Then you could authorize the request on your access points/routers interface. Passcodes could be added for better security (to ensure that the device doesn't attach to your neighbors network).