Permalink
Browse files

add utilities

  • Loading branch information...
1 parent b6d99ec commit 9353fe075f0a648cc6431ce749f91210ffba1727 @invalid-email-address invalid-email-address committed Nov 14, 2012
Showing with 36 additions and 0 deletions.
  1. +33 −0 wpa_supplicant/atheros.conf
  2. +3 −0 wpa_supplicant/wpa_gui-qt4/hotspot2.cpp
@@ -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
+}
@@ -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();
}
@@ -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;
@@ -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);
}

0 comments on commit 9353fe0

Please sign in to comment.