Skip to content

Commit

Permalink
add utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Nov 14, 2012
1 parent b6d99ec commit 9353fe0
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
33 changes: 33 additions & 0 deletions wpa_supplicant/atheros.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Minimal /etc/wpa_supplicant.conf to associate with open
# access points. Please see
# /usr/share/doc/wpasupplicant/wpa_supplicant.conf.gz for more complete
# configuration parameters.

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1

home_realm=mail.example.com
home_username=XJQ
home_password=1234567890

#network={
# ssid="HP"
# key_mgmt=WPA-PSK
# psk="smc2012!"
# proto=RSN
# pairwise=TKIP CCMP
#}

#network={
# ssid="HP-2"
# key_mgmt=NONE
#}

network={
ssid="atheros-hs20-service"
key_mgmt=WPA-PSK
psk="smc2012!"
# proto=RSN
# pairwise=TKIP CCMP
}
3 changes: 3 additions & 0 deletions wpa_supplicant/wpa_gui-qt4/hotspot2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ void Hotspot2::interworkingSelect(){
wpagui->showTrayMessage(QSystemTrayIcon::Information, 5, "Start Interworking Select");
wpagui->ctrlRequest("INTERWORKING_SELECT auto", reply, &reply_len);
arbiterInfoText->clear();
append("[Auto Discover]");
fresh();
}

Expand Down Expand Up @@ -223,6 +224,7 @@ void Hotspot2::notify(WpaMsg msg){
bool stageChange = false;

if (str.startsWith("Arbiter: Get ANQP Answers from the following APs: ")){
append("\n\n[Auto Select]");
filterStage = 0;
stageChange = true;
colored = true;
Expand All @@ -246,6 +248,7 @@ void Hotspot2::notify(WpaMsg msg){
QString output = str.mid(str.indexOf("Arbiter: ") + 9);

if (output.startsWith("Choose ")){
append("\n\n[Auto Connect]");
QString decision = output.mid(output.indexOf("Choose ") + 7);
output = "Choose \"" + decision + "\" because it is " + buildDecisionReason(decision);
}
Expand Down

0 comments on commit 9353fe0

Please sign in to comment.