-1

In order to provision my device on the user's home WiFi network, it will temporarily act as an Accesspoint in order to receive the WiFi network details from the client. As part of the setup process, I'd like to verify connection to the user's WiFi network without losing AP connection to the client in order to provide the connection attempt status (success or fail). It works if both AP & user's WiFi network are using the same channel, but I run into problems when the Accesspoint is configured to run on channel X, and the user's WiFi network is on channel Y. Should it be possible to verify network connectivity on another channel?

Here's the scenario where things aren't working:

I have two virtual interfaces, wlan_ap and wlan_sta. hostapd is configured to use wlan_ap on channel 7 in hostapd.conf. The client connects to my ap network, and through an exchange, my device is given the SSID and PW of the user's home wifi network. However, the user's home wifi network turns out to be on a completely different channel (e.g. 11). If I attempt to use my station interface to connect to the user's wifi network while maintaining connection with the client on my ap interface, this station test connection fails. Or if it somehow connects to the user's wifi network, the AP connection to the client drops. If both ap and user's home network happen to be the same channel, the test connection succeeds. Is there a way to test the connection when the channels differ?

My device is running Debian 7.8 (kernel 3.8.13) and my WiFi adapter is using the Atheros AR9271 chipset w/ ath9k_htc driver.

Any direction you can give, including telling me I'm doing everything wrong and how to do it right, is highly appreciated.

Barbituate
  • 363
  • 2
  • 6

1 Answers1

0

"hostapd.conf has channel=7 and client network is on 8" HUH? The client selects which SSID to access, not the channel.

jobeard
  • 129
  • 6
  • I've reworded the description to hopefully be clearer and give more context. Sorry for the confusion. – Barbituate Jul 15 '15 at 16:30
  • two virtual networks wlan_ap and wlan_sta. your service us on wlan_ap, SSID$A channel 7 client connection is on wlan_sta, SSID$B channel 11 see this link description, http://www.sevenforums.com/network-sharing/264738-connect-multiple-wifi-aps-single-nic.html which says it will switch between the two, but not both at the same time – jobeard Jul 15 '15 at 20:37