Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB wifi dongle recommendation?
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun Jan 25, 2015 4:24 pm    Post subject: Reply with quote

pmam wrote:
It is not exactly the same chip as of CaptainBlood, but quite similar.

pmam ... it doesn't matter, the driver is for the mt7061u ... which is exactly what you have.

pmam wrote:
At the moment I used only with git - I do not know exactly how to do it with tarball -
Can you please advise how to change the commands?

Well, that tarball is the sources released by MediaTek, so doesn't include the patche(s) applied by whoever is maintaining the repo in github. CaptainBlood points to "download as zip" which is just the git sources as a compressed zip archive. So, really, there is nothing else there, if it doesn't compile then the issue is with the code and/or build system.

best ... khay
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Sun Jan 25, 2015 8:09 pm    Post subject: Reply with quote

khayyam,

I see what you mean, but at least I should give a try to the zip file -
I do not know what are the right commands to compile the source with the patch file?
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun Jan 25, 2015 8:16 pm    Post subject: Reply with quote

pmam wrote:
I see what you mean, but at least I should give a try to the zip file - I do not know what are the right commands to compile the source with the patch file?

pmam ... they are the same sources, only one is archived (for downloading) and the other fetched via git. The best you can do under the circumstances is submit a bug (on github) so that the developer is alerted and/or wait to see if CaptainBlood has any suggestions. I can't test myself as I don't have 3.17.7 installed.

best ... khay
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Mon Jan 26, 2015 2:55 pm    Post subject: Reply with quote

khayyam,

Here response of github to my issue - Please advise what need to do, I do not figure out...:
https://github.com/porjo/mt7601/issues/5
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Mon Jan 26, 2015 7:01 pm    Post subject: Reply with quote

pmam wrote:
Here response of github to my issue - Please advise what need to do, I do not figure out...:
https://github.com/porjo/mt7601/issues/5

pmam ... post the out put of the following:

Code:
# zgrep -i wext /proc/config.gz

I suspect that porjo is wrong ... but you never know.

As far as the other suggestion goes, that probably isn't going to work ... it might get it to build but without nl80211 or wext then wpa_supplicant won't be able to drive it.

BTW, the fact that it uses wext at all is disconcerting, I'd probably choose another chipset/device on the basis of that fact alone.

best ... khay
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Mon Jan 26, 2015 7:31 pm    Post subject: Reply with quote

Dear khayyam,

Code:
zgrep -i wext /proc/config.gz
CONFIG_WEXT_CORE=y
CONFIG_WEXT_PROC=y
CONFIG_CFG80211_WEXT=y


There is a file in the tarball called: os/linux/config.mk -
They suggest to change this 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n' -
Please advise if to do it or something else in this file?

Thanks
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Mon Jan 26, 2015 7:44 pm    Post subject: Reply with quote

pmam wrote:
Code:
zgrep -i wext /proc/config.gz
CONFIG_WEXT_CORE=y
CONFIG_WEXT_PROC=y
CONFIG_CFG80211_WEXT=y

pmam ... right, so porjo is wrong, wext is enabled.

pmam wrote:
There is a file in the tarball called: os/linux/config.mk - They suggest to change this 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n' - Please advise if to do it or something else in this file?

Yes, I read that post, but as I said above it probably isn't going to work as wpa_supplicant will expect the driver to understand either NL80211 or WEXT. Anyhow, with such things you can give it a try ... if I were you I'd return the device to the store and get my money back, its not worth supporting these companies who can't provide decent drivers for their products.

best ... khay
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Mon Jan 26, 2015 10:25 pm    Post subject: Reply with quote

khayyam,

Quote:
if I were you I'd return the device to the store and get my money back, its not worth supporting these companies who can't provide decent drivers for their products.

I absolutely agree with you - Such low quality in 2015...

But I still give a try - Now he says: 'It looks like you need CONFIG_WEXT_PRIV=y in particular' -
However, I do not know how to do it in menuconfig?
Maybe this also is needed: CONFIG_WEXT_SPY=y?

Thanks
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Mon Jan 26, 2015 10:43 pm    Post subject: Reply with quote

pmam wrote:
But I still give a try - Now he says: 'It looks like you need CONFIG_WEXT_PRIV=y in particular' - However, I do not know how to do it in menuconfig? Maybe this also is needed: CONFIG_WEXT_SPY=y?

pmam ... in menuconfig hit "/" then provide a search term (so: WEXT_PRIV) it'll show you details, like what needs enabled for it to show. Having taken a quick look myself that option looks like its nolonger available for selection.

best ... khay
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Tue Jan 27, 2015 7:08 am    Post subject: Reply with quote

Dear khayyam,

OK - I see - a problematic device...
Do you have any suggest for a better product with reasonable price -
in addition to those products were mentioned in this topic?

Meanwhile, I will try to see if there is any way to work it out -
I take it as a challenge... If it will succeed I will update here.

I really appreciate your wonderful support!

Thanks a lot
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Tue Jan 27, 2015 3:24 pm    Post subject: Reply with quote

Dear khayyam,

Believe or not I worked it out... :D At lease the compilation is ok!
I found out how to activate wext_priv and other parameters in kernel menuconfig -
I followed to the next discussions in the link that porjo pointed me to and find this:
http://rt2x00.serialmonkey.com/pipermail/users_rt2x00.serialmonkey.com/2013-January/005587.html
So, when I add Cisco/Aironet module (M) and compiling the kernel, I got:
Code:
zgrep -i wext /proc/config.gz
CONFIG_WEXT_CORE=y
CONFIG_WEXT_PROC=y
CONFIG_WEXT_SPY=y
CONFIG_WEXT_PRIV=y
CONFIG_CFG80211_WEXT=y

Then I followed your above compiling commands and it was running without errors and now I have ra0 interface: :D
Code:
ifconfig -a
enp2s1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.10  netmask 255.255.255.0  broadcast 10.0.0.255
        inet6 fe80::37d6:7ccc:4cf3:51ab  prefixlen 64  scopeid 0x20<link>
        ether 00:02:3f:92:7c:c0  txqueuelen 1000  (Ethernet)
        RX packets 9794  bytes 11047437 (10.5 MiB)
        RX errors 0  dropped 1  overruns 0  frame 0
        TX packets 6932  bytes 639093 (624.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 273  bytes 24603 (24.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 273  bytes 24603 (24.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ra0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 169.254.186.118  netmask 255.255.0.0  broadcast 169.254.255.255
        inet6 fe80::24b:5bfc:8a9e:b148  prefixlen 64  scopeid 0x20<link>
        ether 00:22:c0:31:44:20  txqueuelen 1000  (Ethernet)
        RX packets 63623  bytes 15767178 (15.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

sit0: flags=128<NOARP>  mtu 1480
        sit  txqueuelen 0  (IPv6-in-IPv4)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Now I need to find out how to connect to router

Thanks you all
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Tue Jan 27, 2015 6:00 pm    Post subject: Reply with quote

pmam wrote:
Believe or not I worked it out... :D At lease the compilation is ok!

pmam .... ok, good to hear.

pmam wrote:
Now I need to find out how to connect to router

That depends on the method you're using to manage the network, looking at the fact that it has an APIPA address, something automatically tried to configure the interface, but failed as wpa_supplicant wasn't configured or because {insert name} wasn't configured for that interface.

Still, before trying to make it work you can find out if its working:

Code:
# iwconfig ra0
# iwlist ra0 scan

HTH, best, & of course you're welcome ... khay
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Tue Jan 27, 2015 7:53 pm    Post subject: Reply with quote

khayyam,

In all my machines I use DHCPCD network manager and wpa_supplicant.
I am not using wireless-tools so the commands you noted not available -
wireless-tools can help? If yes I will install.
At the moment, I configure this dongle as static ip - I forgot how to configure dynamic ip -
so when I hit this command:
Code:
ifconfig -v ra0 up

I get the right address:
Code:
 ifconfig -a
enp2s1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.10  netmask 255.255.255.0  broadcast 10.0.0.255
        inet6 fe80::37d6:7ccc:4cf3:51ab  prefixlen 64  scopeid 0x20<link>
        ether 00:02:3f:92:7c:c0  txqueuelen 1000  (Ethernet)
        RX packets 5355  bytes 4839584 (4.6 MiB)
        RX errors 0  dropped 1  overruns 0  frame 0
        TX packets 4492  bytes 448947 (438.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 232  bytes 21378 (20.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 232  bytes 21378 (20.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ra0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.11  netmask 255.255.255.0  broadcast 10.0.0.255
        inet6 fe80::24b:5bfc:8a9e:b148  prefixlen 64  scopeid 0x20<link>
        ether 00:22:c0:31:44:20  txqueuelen 1000  (Ethernet)
        RX packets 41418  bytes 9771550 (9.3 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

sit0: flags=128<NOARP>  mtu 1480
        sit  txqueuelen 0  (IPv6-in-IPv4)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

As you said it probably has to do with the configuration of wpa_supplicant -
dont know exactly the right config?

Thanks
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Tue Jan 27, 2015 8:09 pm    Post subject: Reply with quote

I installed wireless-tools and here outputs:
Code:
iwconfig ra0
ra0       Ralink STA  ESSID:"11n-AP"  Nickname:"MT7601STA"
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated   
          Bit Rate:1 Mb/s   
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Link Quality=10/100  Signal level:0 dBm  Noise level:0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Code:
iwlist ra0 scan
ra0       Scan completed :
          Cell 04 - Address: 00:26:5A:12:36:60
                    Protocol:11b/g BW20
                    ESSID:"AFMBZPD7"
                    Mode:Managed
                    Frequency:2.437 GHz (Channel 6)
                    Quality=100/100  Signal level=-31 dBm  Noise level=-92 dBm
                    Encryption key:on
                    Bit Rates:54 Mb/s

EDIT:
Quote:
{insert name} wasn't configured for that interface.

Do you mean that udev suppose to change ra0 to wlan0?
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Tue Jan 27, 2015 11:14 pm    Post subject: Reply with quote

pmam wrote:
In all my machines I use DHCPCD network manager and wpa_supplicant.

pmam ... you mean NetworkManager?

pmam wrote:
I am not using wireless-tools so the commands you noted not available -
wireless-tools can help? If yes I will install.

wireless-tools are not necessary, I just assumed they'd be installed.

pmam wrote:
At the moment, I configure this dongle as static ip - I forgot how to configure dynamic ip - so when I hit this command:

Code:
ifconfig -v ra0 up

I get the right address:
Code:
 ifconfig -a
[...]
ra0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.11  netmask 255.255.255.0  broadcast 10.0.0.255
        inet6 fe80::24b:5bfc:8a9e:b148  prefixlen 64  scopeid 0x20<link>
        ether 00:22:c0:31:44:20  txqueuelen 1000  (Ethernet)
        RX packets 41418  bytes 9771550 (9.3 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
[...]

I don't understand that at all ... what is setting a Class A network address, 'ifconfig <interface> up' doesn't do that. Again, how is the network managed?

pmam wrote:
As you said it probably has to do with the configuration of wpa_supplicant - dont know exactly the right config?

If you plan to connect to a WPA/WPA2/RSN enabled AP then you will need wpa_supplicant, but that is just the authentication/suplication mechanism, the {insert method of managing network} will be the thing that starts wpa_supplicant, dhcpcd, etc, etc. So, it depends ... with NetworkManager then its probably just a matter of 'add', and providing the details, for netifrc then you need to provide some information in /etc/conf.d/net (ie, the fact that wpa_supplicant and dhcpcd are to be used), configure /etc/wpa_supplicant/wpa_supplicant.conf, and make a symlink to net.lo, etc. For dhcpcd managed devices then you'd also need to configure wpa_supplicant.conf ... so, it depends on what you're currently using.

pmam wrote:
Code:
iwlist ra0 scan
   ESSID:"AFMBZPD7"

Is that the AP you're trying to connect to?

pmam wrote:
EDIT:
khayyam wrote:
{insert name} wasn't configured for that interface.

Do you mean that udev suppose to change ra0 to wlan0?

No, I mean that whatever is managing the network probably doesn't know how that interface is to be configured (ie, that its wireless and should connect to a certain AP using WPA/WPA2/RSN, and then run dhcpcd). Now, I don't know what your using, though it seems likely from the above that NetworkManager is in use ... so, configure it to connect to the AP (add the password, and whatever else is required). I'm sure you've had to configure a network connection before, its probably no different ... though, I can't help if I don't know what.

best ... khay
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Wed Jan 28, 2015 8:38 am    Post subject: Reply with quote

khayyam,

Quote:
pmam ... you mean NetworkManager?

NO - As I said - just DHCPCD - I am not using NetworkManager nor netifrc.
I manage without it in all other machines - as far as I know, NetworkManager does not work with static IP.
To be sure - If there is a command that show exactly what network manager is in use, please let me know.
If NetworkManager is needed for this laptop I will install it, but prefer to not -
maybe NetworkManager can help when there are many disconnections...
Quote:
what is setting a Class A network address,

I use class A in all machines...
Quote:
For dhcpcd managed devices then you'd also need to configure wpa_supplicant.conf

Probably something is wrong with this config...
Quote:
pmam wrote:
Code:
iwlist ra0 scan
ESSID:"AFMBZPD7"

Is that the AP you're trying to connect to?

Yes

If ra0 is the right udev name, than probably, the configuration in wpa_supplicant.conf is wrong -
Here is the configuration from other machine that I copied to the laptop:
Code:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
update_config=1

network={
    ssid="AFMBZPD7"
    key_mgmt=NONE
    auth_alg=OPEN
    wep_key0="%aX"6"
    disabled=1
}

Here /etc/dhcpcd.conf:
Code:
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.

# Allow users of this group to interact with dhcpcd via the control socket.
#controlgroup wheel

# Inform the DHCP server of our hostname for DDNS.
hostname

# Use the hardware address of the interface for the Client ID.
#clientid
# or
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
duid

# Persist interface configuration when dhcpcd exits.
persistent

# Rapid commit support.
# Safe to enable by default because it requires the equivalent option set
# on the server to actually work.
option rapid_commit

# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Most distributions have NTP support.
option ntp_servers
# Respect the network MTU.
# Some interface drivers reset when changing the MTU so disabled by default.
#option interface_mtu

# A ServerID is required by RFC2131.
require dhcp_server_identifier

# Generate Stable Private IPv6 Addresses instead of hardware based ones
slaac private

# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook lookup-hostname

interface enp2s1
static ip_address=10.0.0.10/24
static routers=10.0.0.138
static domain_name_servers=10.0.0.138

interface ra0
static ip_address=10.0.0.11/24
static routers=10.0.0.138
static domain_name_servers=10.0.0.138

#dhcp_enp2s1="nodns"


Hope this info helps - If more is needed please let me know.
Thanks
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Wed Jan 28, 2015 1:11 pm    Post subject: Reply with quote

pmam wrote:
khayyam wrote:
pmam ... you mean NetworkManager?

NO - As I said - just DHCPCD - I am not using NetworkManager nor netifrc.

pmam ... no need to shout ;) It wasn't entirely clear what "DHCPCD network manager and wpa_supplicant" means, it could be a list.

pmam wrote:
I manage without it in all other machines - as far as I know, NetworkManager does not work with static IP. To be sure - If there is a command that show exactly what network manager is in use, please let me know.

There is a difference between "the method you're using to manage the network", and "network manager", the latter could be confused with "NetworkManager". It shouldn't be this hard to establish what that "method" is, especially as you would have had to set it up to have some form of networking. I'm not psychic, I asked the above question because there are different methods (one of which is "NetworkManager") and you should know what I couldn't possibly know ... without the aid of a "command".

pmam wrote:
If NetworkManager is needed for this laptop I will install it, but prefer to not - maybe NetworkManager can help when there are many disconnections...

Why would you get the impression it was needed? I simply asked what was being used. That's a rhetorical question, I don't need to know why you might have thought that ... I'm just illustrating that in order to get to "a solution" we don't need to digress, and/or focus on things not relevant to that solution.

pmam wrote:
If ra0 is the right udev name, than probably, the configuration in wpa_supplicant.conf is wrong -

Yes, but we know that 'ra0' is the correct interface name because we ran 'iwconfig' and 'iwlist' on that interface.

pmam wrote:
Here is the configuration from other machine that I copied to the laptop:
Code:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
update_config=1

network={
    ssid="AFMBZPD7"
    key_mgmt=NONE
    auth_alg=OPEN
    wep_key0="%aX"6"
    disabled=1
}

The primary reason for this not working is that its "disabled", besides that your wep_key uses a quote char and so that may be treated as ending the string. Also, I'm not sure auth_alg=OPEN is correct for wep. If there isn't a reason for you using WEP then you should probably use WPA or WPA2, your AP is A/G so it should support one or other. Anyhow, the following should work (obviously, untested).

Code:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
update_config=1

network={
    ssid="AFMBZPD7"
    key_mgmt=NONE
    wep_key0=%aX"6
    wep_tx_keyidx=0
}

I'm not familiar with using dhcpcd for managing the network, as I understand it it will detect if the interface is wireless and so start wpa_supplicant ... that may be an assumption on my part, but as the Class A address was assigned I'll assume that the issue was the fact that wpa_supplicant didn't associate because the network was 'disabled'.

best ... khay
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Wed Jan 28, 2015 4:58 pm    Post subject: Reply with quote

khayyam,

Quote:
no need to shout ;)

I like your style Dear khayyam :D
Actually you are right - we should be accurate while dealing with such issues.
I also was confused in the beginning, between NetwotkManager and network manager -
Then a nice guy from here, charles17, suggested me to establish network without Networkmanager and netifrc -
just with DHCPCD. It is very simple and efficient, and one can choose between dynamic ip or static ip with simple configuration.
Quote:
Why would you get the impression it was needed?

I saw in this topic that CaptainBlood said:
Quote:
Con: It's prone to disconnection, although NetworkManager consequently reconnects.

so I thought it may helps - Hope DHCPCD suppose to reconnects as well - with this strange dongle, I should expect to some disconnecting.. :cry:

Quote:
The primary reason for this not working is that its "disabled"

So I dont know how it works in my desktop...
EDIT: Sorry, you are right it was my mistake - my last post was wpa configuration with 'disabled' card, here is the right one:
Code:
  ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
update_config=1

network={
    ssid="AFMBZPD7"
    key_mgmt=NONE
    auth_alg=OPEN
    wep_key0="%aX"6"
}

Anyway, I tried your wpa configuration - not working. As far as I see your config is for WEP - right?
Maybe, as you suggests, I need to change to WPA or something else - Need to enter to router (AP) and change setup to WPA or just by changing wpa_supplicant's config?
I find wpa_supplicant configuration quite not simple - I had many issues while trying to connect my desktop and finally,
after turn on wpa-supplicant's GUI, it was configured automatically. However, with this laptop GUI not helping...

Regards
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Wed Jan 28, 2015 10:45 pm    Post subject: Reply with quote

pmam wrote:
khayyam wrote:
Why would you get the impression it was needed?

I saw in this topic that CaptainBlood said: "Con: It's prone to disconnection, although NetworkManager consequently reconnects."

pmam ... I see, but its not NetworkManager doing that its wpa_cli.sh. So, its not needed at all.

pmam wrote:
Anyway, I tried your wpa configuration - not working.

Can you provide the output of the following:

Code:
# awk '{RS="Cell"}/AFMBZPD7/' <(/sbin/iwlist ra0 scan)

It should be a lot longer, and more detailed, than what you've posted above, and should tell us what features the AP supports (or, how its currently configured).

pmam wrote:
As far as I see your config is for WEP - right?

I'd assumed that as you'd set wep_key that this was the authentication method used.

pmam wrote:
Maybe, as you suggests, I need to change to WPA or something else - Need to enter to router (AP) and change setup to WPA or just by changing wpa_supplicant's config?

Both, dependent on how the AP is currently configured.

pmam wrote:
I find wpa_supplicant configuration quite not simple - I had many issues while trying to connect my desktop and finally, after turn on wpa-supplicant's GUI, it was configured automatically. However, with this laptop GUI not helping...

If you use wpa_gui and have 'update_config=1' in wpa_supplicant.conf then any network you connect to will be saved to wpa_supplicant.conf. Its possible that your desktop currently connected to the AP has some other configuration, is the above the only section in wpa_supplicant.conf on the desktop?

As you're not sure about how the AP is configured you should log into the AP's web interface and look.

best ... khay
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Thu Jan 29, 2015 4:36 am    Post subject: Reply with quote

khayyam,

Code:
awk '{RS="Cell"}/AFMBZPD7/' <(/sbin/iwlist ra0 scan)
 02 - Address: 00:26:5A:12:36:60
                    Protocol:11b/g BW20
                    ESSID:"AFMBZPD7"
                    Mode:Managed
                    Frequency:2.437 GHz (Channel 6)
                    Quality=100/100  Signal level=-35 dBm  Noise level=-92 dBm
                    Encryption key:on
                    Bit Rates:54 Mb/s

Quote:
is the above the only section in wpa_supplicant.conf on the desktop?

Yes.
Quote:
As you're not sure about how the AP is configured you should log into the AP's web interface and look.

As far as I can see it is WEP.

I am afraid something is missing or it is impossible at all to connect this dongle with this method of: DHCPCD network manager -
I consider to move to netifrc, though I like DHCPCD. All examples found in web are with netifrc - I wonder if someone had succeeded to connect this dongle with DHCPCD?

I see that after each kernel's compiling, need to repeat on the compiling process of the dongle's driver - Should to re-compile the driver or can only copy the compiled file?

BTW: When do we need to use NetworkManager? What extra features it has?

Thanks
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2731

PostPosted: Thu Jan 29, 2015 7:13 am    Post subject: Reply with quote

pmam wrote:
I wonder if someone had succeeded to connect this dongle with DHCPCD?
Shouldn't be too complicated. But this thread has grown long. So could you shortly summarize the present state?
- Are you getting that dongle's network device name as "Adapter" in wpa_gui?
- If so, does it show scan results in wpa_gui?
- From wpa_gui's systray icon, what's in the (right click) status display?
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Thu Jan 29, 2015 8:04 am    Post subject: Reply with quote

charles17,

Quote:
Shouldn't be too complicated

Having said this - Had you have succeded to connect such USB wifi dongle with DHCPCD?
I wish to do it with DHCPCD - As you helped me before to move from netifrc to DHCPCD -
It was a good idea - simple and easier to configure. However, I dont know how to do it with this dongle,
and your help is welcomed.

Quote:
Are you getting that dongle's network device name as "Adapter" in wpa_gui?

NO.

khayyam & charles17,

Meanwhile, I succeeded to connect with netifrc :)
i used this command to debug:
Code:
/etc/init.d/net.ra0 restart

Then I fixed every error untill work it out -
Is there parallel command in DHCPCD that starting only wireless interface and print the errors?
Afterword, wpa_gui recognized automatically ra0 and enabled to configure it by gui -
so here /etc/wpa_supplicant/wpa_supplicant.conf:
Code:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
update_config=1

network={
   ssid="AFMBZPD7"
   key_mgmt=NONE
   auth_alg=OPEN
   wep_key0="%aX"6"
}

Also need to add to /etc/conf.d/net "nl80211" - together wifi config is like this:
Code:
config_ra0="10.0.0.11 netmask 255.255.255.0 brd 10.0.0.255"
routes_ra0="default via 10.0.0.138"
wpa_supplicant_ra0="nl80211"

Now, when I disconnect wired connection it is not automatically switch to wifi,
maybe because of metric paramter - please advise how to fix:
Code:
route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.0.138      0.0.0.0         UG    2      0        0 enp2s1
0.0.0.0         10.0.0.138      0.0.0.0         UG    2004   0        0 ra0
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 enp2s1
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 ra0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo

Meanwhile I fixed it by installing this pacakge: sys-apps/ifplugd.
I am still preferring DHCPCD, so if there is any idea, I am here...

Please refer also to my questions in last post and let me know if there is any testing to perform on this dongle,
so I will put here the results for your info...

Thanks a lot
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2731

PostPosted: Thu Jan 29, 2015 8:42 am    Post subject: Reply with quote

pmam wrote:
Having said this - Had you have succeded to connect such USB wifi dongle with DHCPCD?
Never used any kind of dongle so far.
pmam wrote:
I wish to do it with DHCPCD - As you helped me before to move from netifrc to DHCPCD -
It was a good idea - simple and easier to configure. However, I dont know how to do it with this dongle,
and your help is welcomed.

Quote:
Are you getting that dongle's network device name as "Adapter" in wpa_gui?

NO.
What does it show instead (with net.* stopped and dhcpcd started), would you mind showing us your imgur? And what's the output of debugging wpa_supplicant?
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Thu Jan 29, 2015 9:39 am    Post subject: Reply with quote

charles17,

Quote:
What does it show instead (with net.* stopped and dhcpcd started), would you mind showing us your imgur?

All data is empty and here what is written on wpa_gui - I need to see how to screenshot...
Quote:
could get status from wpa_supplicant


Code:
 wpa_supplicant -Dnl80211 -ira0 -C/var/run/wpa_supplicant/ -c/etc/wpa_supplicant/wpa_supplicant.conf -dd
wpa_supplicant v2.0
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'ra0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'nl80211' ctrl_interface '/var/run/wpa_supplicant/' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='DIR=/var/run/wpa_supplicant GROUP=wheel'
update_config=1
Line: 4 - start of a new network block
ssid - hexdump_ascii(len=8):
     41 46 4d 42 5a 50 44 37                           AFMBZPD7       
key_mgmt: 0x4
auth_alg: 0x1
wep_key0 - hexdump(len=5): [REMOVED]
Priority group 0
   id=0 ssid='AFMBZPD7'
Could not open file /sys/class/net/ra0/phy80211/name: No such file or directory
nl80211: Set mode ifindex 4 iftype 2 (STATION)
nl80211: Failed to set interface 4 to mode 2: -19 (No such device)
nl80211: Could not configure driver to use managed mode
netlink: Operstate: linkmode=0, operstate=6
nl80211: Set mode ifindex 4 iftype 2 (STATION)
nl80211: Failed to set interface 4 to mode 2: -19 (No such device)
ra0: Failed to initialize driver interface
Failed to add interface ra0
ra0: Cancelling scan request
ra0: Cancelling authentication timeout


I dont know if it is important , but - Please notice that this is an external driver - not built-in kernel -
as you can see in this topic.

Thanks
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2731

PostPosted: Thu Jan 29, 2015 10:29 am    Post subject: Reply with quote

pmam wrote:
All data is empty and here what is written on wpa_gui - I need to see how to screenshot...
With fluxbox I use print button for fullscreen and Alt+print for active window
~/.fluxbox/keys wrote:
None 107 :Exec import -window root /tmp/screenshot.png && display /tmp/screenshot.png
Mod1 107 :Exec import -frame -window $(xprop _NET_ACTIVE_WINDOW -root | awk '{print $5}') /tmp/screenshot.png && display /tmp/screenshot.png
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum