You are not logged in.

#1 2016-01-21 06:07:41

abdelkhalak
Member
Registered: 2016-01-21
Posts: 8

AndroidAP wifi hotspot issue

I am using Debian Jessie. I want to connect to the internet using
Samsung Galaxy J2 wifi hotspot. The network manager applet finds the
wireless hotspot AndroidAP but altough I enter the correct password, it
keeps asking me for the password again after a short time. USB
tethering works but I want to use wifi hotspot instead because I need
the only two usb ports I have. Any help will be greatly appreciated.

Offline

#2 2016-01-21 06:26:18

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: AndroidAP wifi hotspot issue

first of all we have to find out if the source of the problem is in your debian machine or in the phone.

when it asks for the password again, does that mean it disconnects, then wants to reconnect? how strong is the signal?
can you test this with a different wifi source?
does the frequency of password requests decrease when you put the phone very close to the computer's wifi antenna?
have you tried using your phone's wifi hotspot with other machines or operating systems? does it work more reliably there?

Offline

#3 2016-01-21 07:26:08

abdelkhalak
Member
Registered: 2016-01-21
Posts: 8

Re: AndroidAP wifi hotspot issue

Thank you very much for your reply. I am using a usb wifi dongle that I tested and it's working with other wifi hotspots. I'm trying to use network-manager to connect to my wifi mobile hotspot. the phone I'm using is Samsung Galaxy J2 (Android 5)

Offline

#4 2016-01-21 19:37:44

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: AndroidAP wifi hotspot issue

yes, but:

ohnonot wrote:

when it asks for the password again, does that mean it disconnects, then wants to reconnect? how strong is the signal?
does the frequency of password requests decrease when you put the phone very close to the computer's wifi antenna?
have you tried using your phone's wifi hotspot with other machines or operating systems? does it work more reliably there?

(you only answered 1 of my questions so far)

Offline

#5 2016-01-22 05:39:51

abdelkhalak
Member
Registered: 2016-01-21
Posts: 8

Re: AndroidAP wifi hotspot issue

ohnonot wrote:

when it asks for the password again, does that mean it disconnects, then wants to reconnect? how strong is the signal?

no, it does not connect at all. The signal is strong. I guess the problem is with password authentication.

ohnonot wrote:

does the frequency of password requests decrease when you put the phone very close to the computer's wifi antenna?

The phone is on the desk very close to the PC

ohnonot wrote:

have you tried using your phone's wifi hotspot with other machines or operating systems? does it work more reliably there?

Yes, I tried it and it's working on other windows systems and with other phones. As I said earlier, it might be an authentication problem and security settings of the nm-applet.
I want to know which security settings and mode work with android wifi mobile hotspots.

Offline

#6 2016-01-22 06:23:06

abdelkhalak
Member
Registered: 2016-01-21
Posts: 8

Re: AndroidAP wifi hotspot issue

My android security is wpa2 psk but there isn't such an option in nm-applet. Could this be the problem?

Offline

#7 2016-01-22 07:34:27

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: AndroidAP wifi hotspot issue

^ No, NetworkManager will connect to WPA2 secured access points.

Are you sure that the password is correct?

To eliminate PEBKAC, attempt to connect in the live session on the BunsenLabs ISO

Offline

#8 2016-01-22 16:02:04

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: AndroidAP wifi hotspot issue

in addition to what HoaS said:
try temporarily disabling androids wifi security, can you connect reliably then?
(this is not a solution, only troubleshooting)

i still didn't understand, have you connected to other wifi networks with this same computer, under bunsenlabs?

i think it's time to explore your computer's side more.
please post the output requested here:
https://forums.bunsenlabs.org/viewtopic.php?id=24

Offline

#9 2016-01-22 18:14:55

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: AndroidAP wifi hotspot issue

The OP has an active thread over at FDN on the same subject:
http://forums.debian.net/viewtopic.php?f=5&t=126660

Just in case the solution is found there.

Offline

#10 2016-01-22 18:26:48

sinister
Member
From: North Carolina
Registered: 2015-09-29
Posts: 35

Re: AndroidAP wifi hotspot issue

both laptops ive run BL and other NiX os's on have no problems connecting to my hotstop. i dont pay for internet service, i have t-mobile with a fully unlimited plan (grandfathered) and a rooted nexus 6 phone with custom rom that hides from t-mobile the fact that im hotspotting. also workes fine on my wifes galaxy s4 also rooted and flashed with a custon rom.

have you looked into rooting options with your phone? it could be your carrier blocking it when it sees its hotspotting. most carriers make you pay extra to hot spot and limit the data. rooting and flashing custom roms is something i know alot about.

check out Xda Developer Forums theres a wealth of knowledge there.

i remember in both the nexus 6 and the galaxy s4 edits had to be made to the SQL database and the Apn settings aswell as a build prop edit. i forget which phone i had to do it manually and whch it was all done by the custom rom.

Last edited by sinister (2016-01-22 18:34:01)

Offline

#11 2016-01-23 01:52:41

abdelkhalak
Member
Registered: 2016-01-21
Posts: 8

Re: AndroidAP wifi hotspot issue

Head_on_a_Stick wrote:

^ No, NetworkManager will connect to WPA2 secured access points.

yes, but it's strange why it can't connect to android wifi hotspot

Head_on_a_Stick wrote:

Are you sure that the password is correct?

yes, I am pretty sure.


Head_on_a_Stick wrote:

To eliminate PEBKAC, attempt to connect in the live session on the BunsenLabs ISO

I will try and provide you with feedback

Offline

#12 2016-01-23 01:59:18

abdelkhalak
Member
Registered: 2016-01-21
Posts: 8

Re: AndroidAP wifi hotspot issue

ohnonot wrote:

in addition to what HoaS said:
try temporarily disabling androids wifi security, can you connect reliably then?
(this is not a solution, only troubleshooting)

I tried disabling android wifi security and it connects for three seconds then disconnects. I am using network-manager and dhcp-client ( a network manager dependency)

ohnonot wrote:

I still didn't understand, have you connected to other wifi networks with this same computer, under bunsenlabs?

i think it's time to explore your computer's side more.
please post the output requested here:
https://forums.bunsenlabs.org/viewtopic.php?id=24

Yes, it connects perfectly with other devices. Except android mobile hotspot.

Last edited by abdelkhalak (2016-01-23 01:59:44)

Offline

#13 2016-01-23 02:16:09

abdelkhalak
Member
Registered: 2016-01-21
Posts: 8

Re: AndroidAP wifi hotspot issue

Here is the output requested:

$ uname -rv
3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt20-1+deb8u2 (2016-01-02)
$  lspci -knn | grep -EiA2 net
00:19.0 Ethernet controller [0200]: Intel Corporation 82567LM-3 Gigabit Network Connection [8086:10de] (rev 02)
	Subsystem: Hewlett-Packard Company Device [103c:3034]
	Kernel driver in use: e1000e
$ dmesg|grep -Ei 'wlan|firmw|dhc'
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-686-pae root=UUID=014632d9-57cd-48c7-a02d-dc974508e9df ro bdev=sda2 fromiso=/jessie/firmware-8.1.0-i386-netinst.iso quiet
[    0.208550] acpi PNP0A08:00: [Firmware Info]: MMCONFIG for domain 0000 [bus 00-3f] only partially covers this bridge
[    2.263050] usb 2-1: Product: USB WLAN
[   10.206120] usb 2-1: firmware: direct-loading firmware zd1201.fw
[   10.673547] usb 2-1: wlan0: ZD1201 USB Wireless interface
[   10.740129] systemd-udevd[258]: renamed network interface wlan0 to wlan1
[  483.121271] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[  493.490650] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[  497.100275] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[  549.470592] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[  549.477507] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[  549.590693] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[  551.800281] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[  629.558593] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[  629.565622] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[  629.678817] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[  631.900041] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[  741.278302] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[  741.410300] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[  741.616743] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
$ sudo cat /var/log/syslog | grep -Ei 'net|wpa|dhc'
$ sudo rfkill list

http://pastebin.com/n8AtnKW3


MOD EDIT: added [ code ] tags wink

Last edited by damo (2016-01-23 03:33:18)

Offline

#14 2016-01-23 10:12:45

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: AndroidAP wifi hotspot issue

abdelkhalak wrote:
$  lspci -knn | grep -EiA2 net
00:19.0 Ethernet controller [0200]: Intel Corporation 82567LM-3 Gigabit Network Connection [8086:10de] (rev 02)
	Subsystem: Hewlett-Packard Company Device [103c:3034]
	Kernel driver in use: e1000e

Are you sure that is the *full* output of that command?

There is no wireless card listed but "wlan1" shows up in the dmesg output hmm

Offline

#15 2016-01-23 10:26:01

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: AndroidAP wifi hotspot issue

^ Poster has usb dongle smile

Notice udev has changed wlan0 to wlan1.
I remember seeing that in the past.
Sth about retaining seen devices.
I don't remember how you switch that off though. In udev rules?

Edit:
Found it.
Clear file /etc/udev/rules.d/70-persistent-net.rules

Offline

#16 2016-01-23 10:37:43

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: AndroidAP wifi hotspot issue

xaos52 wrote:

^ Poster has usb dongle smile

Good catch -- thanks!
smile

@OP: Please post the output of:

lsusb
ip a

Offline

#17 2016-01-23 10:46:45

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: AndroidAP wifi hotspot issue

Clear file /etc/udev/rules.d/70-persistent-net.rules

Remove everything from the file except the comments, then reboot.

Perhaps user has set up his configuration for the connection associated with wlan0.
Network-manager does not find a config associated with wlan1 -> no password -> asks for password.

Offline

#18 2016-01-23 11:35:41

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: AndroidAP wifi hotspot issue

another thing i noticed:
dmesg output shows 'IPv6:' - maybe op should try and disable ipv6?

Offline

#19 2016-01-23 11:40:24

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: AndroidAP wifi hotspot issue

ohnonot wrote:

maybe op should try and disable ipv6?

+1

@OP: Highlight the BunsenLabs GRUB menu entry and press "e" then add this to the end of the line that starts with "linux":

ipv6.disable=1

Then press <Ctrl>+x (at the same time) to boot the modified entry.

If that helps, make it permanent by adding the above parameter between the quotation marks on the GRUB_CMDLINE_LINUX line in the file at /etc/default/grub then save the file and run:

sudo update-grub

Offline

#20 2016-01-23 12:04:00

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: AndroidAP wifi hotspot issue

^ HoaS, isn't it enough to disable it from "edit connections" in nm-applet?

Offline

Board footer

Powered by FluxBB