WiFi connect & login issues w. 1.5.11 in Client + AP mode

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

Post Reply
Garghoul
Posts: 23
Joined: Fri Nov 01, 2013 7:48 pm

WiFi connect & login issues w. 1.5.11 in Client + AP mode

Post by Garghoul »

I just came to Gargoyle/OpenWRT, when I recently came to realize to my utmost discombobulation, that Buffalo, despite now more than a decade of widespread deployment, still do not support NTFS formatted MSDs on their router's USB port(s). Therefore I needed an alternative to their firmware offers.

After installing Gargoyle 1.5.11 on a WZR-HP-G300NH, I am experiencing some strange WiFi related issues and hope, to find here some remedies for them.

Gargoyle Settings (Client + AP mode):

Device Configuration: Gateway
Internet/WAN: Connect via: DHCP
WAN Ethernet Port: no noticeable change with either option
Local Network/LAN: DNS servers: Default DNS Servers specified by ISP
Wireless: Wireless Mode: Client+AP
Operation Mode: N+G+B
Wireless MAC Filter: Disabled
Access Point SSID: Wireless Client Isolation: Disabled
WAN and LAN are on different subnets, other settings are default.

1.) Dell Latitude D600 laptop with built-in:

Code: Select all

 latitude-d600:~$ inxi -Nxx
Network:   Card-1: Broadcom BCM4306 802.11b/g Wireless LAN Controller 
           driver: b43-pci-bridge bus-ID: 02:03.0 chip-ID: 14e4:4320
           Card-2: Broadcom NetXtreme BCM5705M Gigabit Ethernet driver: tg3 ver: 3.130 bus-ID: 02:00.0 chip-ID: 14e4:165d

or external USB:
           Card-3: Edimax EW-7722UTn 802.11n Wireless Adapter [Ralink RT307x] usb-ID: 002-011 chip-ID: 7392:7722

or  external USB:
           Card-3: Ralink RT2870 Wireless Adapter usb-ID: 002-012 chip-ID: 148f:2870
 
running current SolydX http://solydxk.com/products/solydx/.

Q1:) Why can I log in with my Android 2.3.3 smart phone without any issues through WiFi to Gargoyle's web GUI to administer the router, but when I try the same with Firefox 22 (JS enabled) from the Latitude with either WiFi card/adapter, after logging in, I only can access https://192.168.11.1/overview.sh.
Trying to switch to any other settings page, always throws me right back at https://192.168.11.1./login.sh.

Doing the same through an Ethernet LAN port works just fine, though.
Why is that? What am I missing here?

Code: Select all

~$ lsmod |grep -i rt
rt2800usb              17754  0 
rt2x00usb              13392  1 rt2800usb
rt2800lib              47390  1 rt2800usb
rt2x00lib              37642  3 rt2x00usb,rt2800lib,rt2800usb
crc_ccitt              12331  1 rt2800lib
iTCO_vendor_support    12632  1 iTCO_wdt
mac80211              324978  4 b43,rt2x00lib,rt2x00usb,rt2800lib
cfg80211              297776  3 b43,mac80211,rt2x00lib
parport_pc             22073  1 
parport                31371  3 lp,ppdev,parport_pc
usbcore               110558  7 usblp,uhci_hcd,rt2x00usb,usb_storage,rt2800usb,ehci_hcd,ehci_pci

2.) Whatever I try, I never can log-in to Gargoyle from my old Compaq Presario 906US, running vintage Linux Mint 8 Gloria, with the RT2870 USB adapter.

Code: Select all

$ lsb_release -d
Description:	Linux Mint 8 Helena - Main Edition
$ cat /proc/version
Linux version 2.6.31-23-generic-tuxonice (buildd@uranium) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9) ) #75~ppa1-Ubuntu SMP Thu May 5 04:59:30 UTC 2011

Code: Select all

lsmod |grep -i rt2
rt2870sta                488820      1
"iwconfig ra0" and "iwlist ra0 scan" show, that the USB WIFi adapter is working fine and I have no problems at all, to connect to a Verizon cellular hotspot, various cellphones in hotspot mode, WiFi at the local libraries and at least 3 other wireless routers right away (most are WPA2 protected, a few are open ones).

This is an excerpt from /var/log/syslog, while the RT2870-based USB adapter tries to connect to the router:

Code: Select all

Nov  5 16:58:26 Laptop wpa_supplicant[969]: CTRL-EVENT-SCAN-RESULTS 
Nov  5 16:58:26 Laptop kernel: [254688.605114] ===>rt_ioctl_giwscan. 1(1) BSS returned, data->length = 106
Nov  5 16:58:43 Laptop dhclient: DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 4
Nov  5 16:58:47 Laptop dhclient: DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 6
Nov  5 16:58:53 Laptop dhclient: DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 8
Nov  5 16:59:01 Laptop dhclient: DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 21
Nov  5 16:59:22 Laptop dhclient: DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 12
Nov  5 16:59:26 Laptop wpa_supplicant[969]: CTRL-EVENT-SCAN-RESULTS 
Nov  5 16:59:26 Laptop kernel: [254748.604161] ===>rt_ioctl_giwscan. 1(1) BSS returned, data->length = 106
Nov  5 16:59:34 Laptop dhclient: DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 10
Nov  5 16:59:44 Laptop dhclient: No DHCPOFFERS received.
Nov  5 16:59:44 Laptop dhclient: No working leases in persistent database - sleeping.
Nov  5 17:00:26 Laptop wpa_supplicant[969]: CTRL-EVENT-SCAN-RESULTS 
Nov  5 17:00:26 Laptop kernel: [254808.606517] ===>rt_ioctl_giwscan. 2(2) BSS returned, data->length = 260
Nov  5 17:01:26 Laptop wpa_supplicant[969]: CTRL-EVENT-SCAN-RESULTS 
Nov  5 17:01:26 Laptop kernel: [254868.604150] ===>rt_ioctl_giwscan. 1(1) BSS returned, data->length = 106
Nov  5 17:02:26 Laptop wpa_supplicant[969]: CTRL-EVENT-SCAN-RESULTS 
Nov  5 17:02:26 Laptop kernel: [254928.604921] ===>rt_ioctl_giwscan. 1(1) BSS returned, data->length = 106
Nov  5 17:03:26 Laptop kernel: [254988.607318] ===>rt_ioctl_giwscan. 1(1) BSS returned, data->length = 106
Nov  5 17:03:26 Laptop wpa_supplicant[969]: CTRL-EVENT-SCAN-RESULTS 
Nov  5 17:03:54 Laptop gnome-screensaver-dialog: pam_sm_authenticate: Called
Nov  5 17:03:54 Laptop gnome-screensaver-dialog: pam_sm_authenticate: username = [xxxxxx]
Nov  5 17:04:26 Laptop kernel: [255048.604872] ===>rt_ioctl_giwscan. 1(1) BSS returned, data->length = 106
Nov  5 17:04:26 Laptop wpa_supplicant[969]: CTRL-EVENT-SCAN-RESULTS 
Nov  5 17:04:36 Laptop NetworkManager: <info>  Activation (ra0) starting connection 'XXXXXXXXX hidden WPA'
Nov  5 17:04:36 Laptop NetworkManager: <info>  (ra0): device state change: 3 -> 4 (reason 0)
Nov  5 17:04:36 Laptop NetworkManager: <info>  Activation (ra0) Stage 1 of 5 (Device Prepare) scheduled...
Nov  5 17:04:36 Laptop NetworkManager: <info>  Activation (ra0) Stage 1 of 5 (Device Prepare) started...
Nov  5 17:04:36 Laptop NetworkManager: <info>  Activation (ra0) Stage 2 of 5 (Device Configure) scheduled...
Nov  5 17:04:36 Laptop NetworkManager: <info>  Activation (ra0) Stage 1 of 5 (Device Prepare) complete.
Nov  5 17:04:36 Laptop NetworkManager: <info>  Activation (ra0) Stage 2 of 5 (Device Configure) starting...
Nov  5 17:04:36 Laptop NetworkManager: <info>  (ra0): device state change: 4 -> 5 (reason 0)
Nov  5 17:04:36 Laptop NetworkManager: <info>  Activation (ra0/wireless): connection 'XXXXXXXXX hidden WPA' has security, and secrets exist.  No new secrets needed.
Nov  5 17:04:36 Laptop NetworkManager: <info>  Config: added 'ssid' value 'XXXXXXXXX'
Nov  5 17:04:36 Laptop NetworkManager: <info>  Config: added 'scan_ssid' value '1'
Nov  5 17:04:36 Laptop NetworkManager: <info>  Config: added 'key_mgmt' value 'WPA-PSK'
Nov  5 17:04:36 Laptop NetworkManager: <info>  Config: added 'psk' value '<omitted>'
Nov  5 17:04:36 Laptop NetworkManager: nm_setting_802_1x_get_pkcs11_engine_path: assertion `NM_IS_SETTING_802_1X (setting)' failed
Nov  5 17:04:36 Laptop NetworkManager: nm_setting_802_1x_get_pkcs11_module_path: assertion `NM_IS_SETTING_802_1X (setting)' failed
Nov  5 17:04:36 Laptop NetworkManager: <info>  Activation (ra0) Stage 2 of 5 (Device Configure) complete.
Nov  5 17:04:36 Laptop NetworkManager: <info>  Config: set interface ap_scan to 2
Nov  5 17:04:36 Laptop wpa_supplicant[969]: Trying to associate with SSID 'XXXXXXXXX'
Nov  5 17:04:36 Laptop wpa_supplicant[969]: Association request to the driver failed
Nov  5 17:04:36 Laptop NetworkManager: <info>  (ra0): supplicant connection state:  inactive -> scanning
Nov  5 17:04:36 Laptop NetworkManager: <info>  (ra0): supplicant connection state:  scanning -> associating
Nov  5 17:04:41 Laptop wpa_supplicant[969]: Authentication with 00:00:00:00:00:00 timed out.
Nov  5 17:04:41 Laptop wpa_supplicant[969]: Trying to associate with SSID 'XXXXXXXXX'
Nov  5 17:04:41 Laptop wpa_supplicant[969]: Association request to the driver failed
Nov  5 17:04:41 Laptop NetworkManager: <info>  (ra0): supplicant connection state:  associating -> disconnected
Nov  5 17:04:41 Laptop NetworkManager: <info>  (ra0): supplicant connection state:  disconnected -> scanning
Nov  5 17:04:41 Laptop NetworkManager: <info>  (ra0): supplicant connection state:  scanning -> associating
Nov  5 17:04:46 Laptop wpa_supplicant[969]: Authentication with 00:00:00:00:00:00 timed out.
Q2:) Why can't I connect to the Buffalo router running Gargoyle from that laptop, even when I tried it previously w/o any password protection?
Any ideas?


Q3:) When I "Save Changes", are they taking effect right away or do I have to reboot the router, as it was required with Buffalo's firmware?

Garghoul
Posts: 23
Joined: Fri Nov 01, 2013 7:48 pm

Re: WiFi connect & login issues w. 1.5.11 in Client + AP mod

Post by Garghoul »

Q1:) Why can I log in with my Android 2.3.3 smart phone without any issues through WiFi to Gargoyle's web GUI to administer the router, but when I try the same with Firefox 22 (JS enabled) from the Latitude with either WiFi card/adapter, after logging in, I only can access https://192.168.11.1/overview.sh.
Trying to switch to any other settings page, always throws me right back at https://192.168.11.1./login.sh.
Besides the fact, that https login from the Latitude D600 w. FF 22 via WiFi often was working, but then all of a sudden didn't anymore and vice versa, I now found a new clue, after updating to FF 25.0.1 just 3 days ago.
In FF's Tools -> SecretAgent... -> 'User Agents' tab "[x]Rotate User Agents" is the default active setting.
This way however I never can https login to Gargoyle via WiFi.
Disabling this setting and login works again, at least for the time being in a repeatable and reversible way
I don't really quite understand the implications of this setting, nor why/how it throws Gargoyle's login off balance, but my gut feeling is, that this is something important, that should be investigated and hopefully fixed.

Edit 2013/11/29 4:44h: Note: I tried to delete this post, but in the very last step I get a: "You cannot delete posts in this forum." So here it goes.
Well, it turned out that it wasn't changes in FF 25 per se, but the add-on SecretAgent 1.12 (http://www.dephormation.org.uk/?page=81), which in the meantime got installed w/o my knowledge, that when active, causes this issue and btw, also confuses gmail to fall back to:
"Some important features may not work in this version of your browser, so you have been redirected to the Basic HTML version. Upgrade to a modern browser, such as Google Chrome."

Garghoul
Posts: 23
Joined: Fri Nov 01, 2013 7:48 pm

Re: WiFi connect & login issues w. 1.5.11 in Client + AP mod

Post by Garghoul »

Garghoul wrote: 2.) Whatever I try, I never can log-in to Gargoyle from my old Compaq Presario 906US, running vintage Linux Mint 8 Gloria, with the RT2870 USB adapter.
Q2:) Why can't I connect to the Buffalo router running Gargoyle from that laptop, even when I tried it previously w/o any password protection?
For all that are still interested, I think I am now a good bit closer to solving this part of the mystery.
According to https://fooninja.net/2010/09/02/how-to- ... in-ubuntu/, it turns out, that there is a bug in at least Ubuntu 9.04/10.04, preventing WiFi to resume properly after suspend/hibernate.
Even though adding his suggested script in /usr/lib/pm-utils/sleep.d/ doesn't completely solve my connection issues - in comparison to the Android phone or the SolydX Latitude - but it dramatically improves things for me, so that the Compaq eventually gets online, too.
So, for the time being, I'd rate this part as almost solved.

Post Reply