Enable Wifi with Comfast Realtek

Re: Enable Wifi with Comfast Realtek

Postby fvdw » Sun Dec 02, 2018 5:26 pm

if it show the adapter wlan0: with info about yur adapter to use you need to do

Code: Select all
ifconfig wlan0 up

when now giving
command
Code: Select all
ifconfig

It should be listed but without ip

If this is the case then connect to wifi accespoint
Code: Select all
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant-1.conf -B


get ip adres
Code: Select all
udhcpc -b -i wlan0 -q -s /etc/simple.script


to check status
Code: Select all
wpa_cli status
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Enable Wifi with Comfast Realtek

Postby Jocko » Sun Dec 02, 2018 5:28 pm

Maybe there is an issue with udev rule.
Can you post the output when you plug again your dongle after running this command line
Code: Select all
udevadm monitor


---edit---
I removed the option --udev in the command line
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Enable Wifi with Comfast Realtek

Postby fvdw » Sun Dec 02, 2018 5:37 pm

another driver V 5.2.6.3

not that name is changed to 8821au.ko

This module comes out when compiling the driver in the package identified as 0009444-RTL8811AU_Linux_v5.2.6.3

To remove the old driver either reboot and delete the modle or use
Code: Select all
modprobe -r 8812AU

(check with lsmod if it is gone)

Put the new driver in /lib/modules/4.6.6
Then use depmod and modprobe again to install the new driver and see what happens
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Enable Wifi with Comfast Realtek

Postby pedro0lx » Sun Dec 02, 2018 9:24 pm

allright! :thumbup
with this one it's already detected the driver! (: and I can enable the wlan0!

but I have another problem... with the wpa_supplicant command. I don't have the wpa_supplicant folder inside /etc neither wpa_supplicant.conf file. :scratch

Code: Select all
root@fvdwsl-base:/ # wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant-
1.conf -B
Successfully initialized wpa_supplicant
Failed to open config file '/etc/wpa_supplicant/wpa_supplicant-1.conf', error: No such file or directory
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant-1.conf'.
pedro0lx
Donator VIP
Donator VIP
 
Posts: 6
Joined: Wed Nov 21, 2018 2:57 pm

Re: Enable Wifi with Comfast Realtek

Postby Jocko » Sun Dec 02, 2018 9:29 pm

:scratch

You must create it before !
You should read the HowTo available here : https://plugout.net/viewtopic.php?f=7&t=1829
3. Make a configuration file and put it in /etc/wpa_supplicant
example conf file (wpa_supplicant.conf);

Replace your-sid and your-passkey by the the actual values set in your wlan (keep the quotes as shown)
Note that these names are case sensitive !

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=root
update_config=1

network={
ssid="your-ssid"
scan_ssid=1
psk="your-passkey"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
group=TKIP
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Enable Wifi with Comfast Realtek

Postby pedro0lx » Sun Dec 02, 2018 9:59 pm

:applause

I was following previous post and assumed the manual was outdated!

it's working! :thumbup

Obrigado e abraços! ;)
pedro0lx
Donator VIP
Donator VIP
 
Posts: 6
Joined: Wed Nov 21, 2018 2:57 pm

Re: Enable Wifi with Comfast Realtek

Postby Jocko » Sun Dec 02, 2018 10:32 pm

Nice to heard you succeeded to configure your wifi dongle. :thumbup
pedro0lx wrote:I was following previous post and assumed the manual was outdated!
It is the opposite case the topics on development forum are outdated (bad attempts, errors,...) and this wiki is up to date

Otherwise I advice to backup your files (script, conf, driver) which will be overwritten if you upgrade the nas.

I also advice not to edit rcS as this file may be overwritten if you install a patch. But you should enable the feature boot jobs feature (see its related menu in the firmware web-interface) and then create a short shell script in the folder: /direct-usb/fvdw/cron-boot (so in the subfolder cron-boot of the share fvdw).
This short script is
Code: Select all
#!/bin/sh

[ -e /etc/wpa_supplicant/wpa_supplicant.conf  ] && wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -B >> /etc/iface_scripts/udev.log
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Previous

Return to Development

Who is online

Users browsing this forum: No registered users and 14 guests