LINUX.ORG.RU

D-Link DWA-525 настройка

 , ,


0

1

Здравствуйте, мои дорогие любители беспроводной сети.

Настраиваю сабж под Debian jessie.

#ifconfig

eth0      Link encap:Ethernet  HWaddr 00:1e:8c:69:e1:10  
          inet addr:192.168.0.50  Bcast:192.168.15.255  Mask:255.255.240.0
          inet6 addr: fe80::21e:8cff:fe69:e110/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:460704 errors:0 dropped:1676 overruns:0 frame:0
          TX packets:241056 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:255126088 (243.3 MiB)  TX bytes:22381884 (21.3 MiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:11850 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11850 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:40421045 (38.5 MiB)  TX bytes:40421045 (38.5 MiB)

wlan0     Link encap:Ethernet  HWaddr ac:f1:df:0b:1c:8b  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

# cat /etc/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant

network={
        scan_ssid=0
	ssid="IS-NET"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP
        group=TKIP
	psk=*******************************************************************
}

# wpa_supplicant -D nl80211 -i wlan0 -c /etc/wpa_supplicant.conf Имеем по кругу следующее сообщение:

wlan0: SME: Trying to authenticate with ec:43:f6:05:7d:74 (SSID='IS-NET' freq=2462 MHz)
wlan0: Trying to associate with ec:43:f6:05:7d:74 (SSID='IS-NET' freq=2462 MHz)
wlan0: Associated with ec:43:f6:05:7d:74
wlan0: CTRL-EVENT-DISCONNECTED bssid=ec:43:f6:05:7d:74 reason=3

Согласно http://www.aboutcher.co.uk/2012/07/linux-wifi-deauthenticated-reason-codes/

3 Deauthenticated because sending STA is leaving (or has left) IBSS or ESS The access point went offline, deauthenticating the client.

Как точка доступа может уйти в оффлайн, после того как

wlan0: Associated with ec:43:f6:05:7d:74

Чего делать-то?

★☆☆

пробовать wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant.conf

psk=*******************************************************************
как задаёшь psk? просто пароль? или wpa_passphrase mywireless secretpassphrase

daemonpnz ★★★★★ ()
Последнее исправление: daemonpnz (всего исправлений: 3)
Ответ на: комментарий от daemonpnz

Это был самый 1-й вариант. Я ж не сразу на лор пришел, потрахался маленько и погуглил малость. С ним добавляется 2 строчки с файледами

wlan0: Failed to initiate AP scan
wlan0: SME: Trying to authenticate with ec:43:f6:05:7d:74 (SSID='IS-NET' freq=2462 MHz)
wlan0: SME: Authentication request to the driver failed
wlan0: Associated with ec:43:f6:05:7d:74
wlan0: CTRL-EVENT-DISCONNECTED bssid=ec:43:f6:05:7d:74 reason=3
wlan0: Failed to initiate AP scan
wlan0: SME: Trying to authenticate with ec:43:f6:05:7d:74 (SSID='IS-NET' freq=2462 MHz)
wlan0: SME: Authentication request to the driver failed
wlan0: Associated with ec:43:f6:05:7d:74
wlan0: CTRL-EVENT-DISCONNECTED bssid=ec:43:f6:05:7d:74 reason=3
r_asian ★☆☆ ()
Ответ на: комментарий от daemonpnz

С wext вообще всё печально

c# wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant.conf
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWSCAN]: Device or resource busy
wlan0: Failed to initiate AP scan
wlan0: Trying to associate with ec:43:f6:05:7d:74 (SSID='IS-NET' freq=2462 MHz)
ioctl[SIOCSIWFREQ]: Device or resource busy
ioctl[SIOCSIWESSID]: Device or resource busy
wlan0: Association request to the driver failed
wlan0: Associated with ec:43:f6:05:7d:74
wlan0: CTRL-EVENT-DISCONNECTED bssid=ec:43:f6:05:7d:74 reason=0
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWSCAN]: Device or resource busy
wlan0: Failed to initiate AP scan
ioctl[SIOCSIWSCAN]: Device or resource busy
wlan0: Failed to initiate AP scan
wlan0: Trying to associate with ec:43:f6:05:7d:74 (SSID='IS-NET' freq=2462 MHz)
ioctl[SIOCSIWFREQ]: Device or resource busy
ioctl[SIOCSIWESSID]: Device or resource busy
wlan0: Association request to the driver failed
wlan0: Associated with ec:43:f6:05:7d:74
wlan0: CTRL-EVENT-DISCONNECTED bssid=ec:43:f6:05:7d:74 reason=0
r_asian ★☆☆ ()
Ответ на: комментарий от daemonpnz
# lspci -vk
.......
05:03.0 Network controller: Ralink corp. RT5360 Wireless 802.11n 1T/1R
	Subsystem: D-Link System Inc DWA-525 Wireless N 150 Desktop Adapter (rev.A2)
	Flags: bus master, slow devsel, latency 64, IRQ 16
	Memory at ff7e0000 (32-bit, non-prefetchable) [size=64K]
	Capabilities: [40] Power Management version 3
	Kernel driver in use: rt2800pci





# iwconfig 
wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Frequency:2.462 GHz  Access Point: Not-Associated   
          Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
          
lo        no wireless extensions.

eth0      no wireless extensions.




t# dmesg | tail -n 30
[57333.517739] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[57333.517743] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[57333.517747] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[57333.517751] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[57333.517754] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[57333.517757] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[57334.660642] wlan0: authenticate with ec:43:f6:05:7d:74
[57334.668152] wlan0: send auth to ec:43:f6:05:7d:74 (try 1/3)
[57334.669553] wlan0: authenticated
[57334.669662] rt2800pci 0000:05:03.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
[57334.669670] rt2800pci 0000:05:03.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
[57334.672031] wlan0: associate with ec:43:f6:05:7d:74 (try 1/3)
[57334.673942] wlan0: RX AssocResp from ec:43:f6:05:7d:74 (capab=0x411 status=0 aid=2)
[57334.674120] wlan0: associated
[57334.674248] cfg80211: Calling CRDA for country: RU
[57334.674843] wlan0: disassociating from ec:43:f6:05:7d:74 by local choice (reason=3)
[57334.688225] wlan0: deauthenticating from ec:43:f6:05:7d:74 by local choice (reason=3)
[57334.688723] wlan0: deauthenticating from ec:43:f6:05:7d:74 by local choice (reason=3)
[57334.689317] cfg80211: Regulatory domain changed to country: RU
[57334.689322] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[57334.689327] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[57334.689331] cfg80211:   (5735000 KHz - 5835000 KHz @ 20000 KHz), (N/A, 3000 mBm)
[57334.690055] cfg80211: Calling CRDA to update world regulatory domain
[57334.699166] cfg80211: World regulatory domain updated:
[57334.699173] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[57334.699178] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[57334.699183] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[57334.699187] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[57334.699192] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[57334.699197] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)



# uname -r
3.10-2-686-pae
r_asian ★☆☆ ()

А зачем руками wpa_supplicant трогать? Дебиан же умеет это всё через interfaces.

shell-script ★★★★★ ()
Ответ на: комментарий от daemonpnz

сколько поместилось

[    7.420633] cfg80211: World regulatory domain updated:
[    7.420640] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    7.420645] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    7.420649] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    7.420654] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    7.420658] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    7.420663] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    7.652236] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/input/input6
[    9.769992] Adding 1047548k swap on /dev/sda5.  Priority:-1 extents:1 across:1047548k 
[   10.321337] EXT3-fs (sda1): using internal journal
[   11.080267] fuse init (API version 7.22)
[   11.185277] loop: module loaded
[   11.854636] EXT4-fs (sda6): mounted filesystem with ordered data mode. Opts: (null)
[   13.589424] RPC: Registered named UNIX socket transport module.
[   13.589429] RPC: Registered udp transport module.
[   13.589431] RPC: Registered tcp transport module.
[   13.589433] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   13.626350] FS-Cache: Loaded
[   13.627079] Key type dns_resolver registered
[   13.643551] FS-Cache: Netfs 'nfs' registered for caching
[   13.690699] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   22.697181] lp0: using parport0 (interrupt-driven).
[   22.905032] ppdev: user-space parallel port driver
[   26.029768] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2860.bin'
[   26.085880] rt2800pci 0000:05:03.0: firmware: agent loaded rt2860.bin into memory
[   26.085891] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.34
[   26.132229] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   38.105338] r8169 0000:02:00.0 eth0: link down
[   38.105351] r8169 0000:02:00.0 eth0: link down
[   38.105424] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   39.734479] r8169 0000:02:00.0 eth0: link up
[   39.734496] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   40.980252] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   41.244232] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   41.493326] r8169 0000:02:00.0 eth0: link down
[   41.493377] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   41.493505] r8169 0000:02:00.0 eth0: link down
[   41.761295] r8169 0000:02:00.0 eth0: link down
[   41.761345] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   43.380212] r8169 0000:02:00.0 eth0: link up
[   43.380228] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  154.600492] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  155.657911] wlan0: authenticate with ec:43:f6:05:7d:74
[  155.668092] wlan0: send auth to ec:43:f6:05:7d:74 (try 1/3)
[  155.671022] wlan0: authenticated
[  155.674376] rt2800pci 0000:05:03.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
[  155.674380] rt2800pci 0000:05:03.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
[  155.676059] wlan0: associate with ec:43:f6:05:7d:74 (try 1/3)
[  155.677953] wlan0: RX AssocResp from ec:43:f6:05:7d:74 (capab=0x411 status=0 aid=2)
[  155.678128] wlan0: associated
[  155.678163] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  155.678228] cfg80211: Calling CRDA for country: RU
[  155.678895] wlan0: disassociating from ec:43:f6:05:7d:74 by local choice (reason=3)
[  155.692362] wlan0: deauthenticating from ec:43:f6:05:7d:74 by local choice (reason=3)
[  155.693101] cfg80211: Calling CRDA to update world regulatory domain
[  155.699326] cfg80211: World regulatory domain updated:
[  155.699331] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[  155.699335] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  155.699337] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  155.699340] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[  155.699343] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  155.699346] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  156.852683] wlan0: authenticate with ec:43:f6:05:7d:74
[  156.852737] wlan0: send auth to ec:43:f6:05:7d:74 (try 1/3)
[  156.854172] wlan0: authenticated
[  156.859511] rt2800pci 0000:05:03.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
[  156.859518] rt2800pci 0000:05:03.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
[  156.860027] wlan0: associate with ec:43:f6:05:7d:74 (try 1/3)
[  156.861869] wlan0: RX AssocResp from ec:43:f6:05:7d:74 (capab=0x411 status=0 aid=2)
[  156.862042] wlan0: associated
[  156.862127] cfg80211: Calling CRDA for country: RU
[  156.862812] wlan0: disassociating from ec:43:f6:05:7d:74 by local choice (reason=3)
[  156.876967] cfg80211: Calling CRDA to update world regulatory domain

r_asian ★☆☆ ()

дебиан на столько стабилен, что в нём нет NetworkManagerа?

точка доступа тоже самодельная?

ukr_unix_user ★★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.