Jump to content

Recommended Posts

Posted (edited)

 

Hello all.

 

I'm having a banana Pi and two days ago I had bananian OS on it. Now after searching online I decided to install armbian because it seems the most updated and more user-friendly one.

 

One of the things that I want to do with my Pi, is to create an AP and connect other devices to it. So I read the documentation that is online from armbian site that refers on 

 

A. How to build a wireless driver?

B. How to set wireless access point?

 

Started with the A. and following all the steps, I realized that the 8192cu.ko module was already installed and loaded because when I tried to load it with insmod command it returned me:

Quote

 

[ 1093.746552] 8192cu: loading out-of-tree module taints kernel.

[ 1093.763903] Error: Driver 'rtl8192cu' is already registered, aborting...

 

 

So I continued with the B. article.

 

I cloned the suggested repository and run the go.sh script. After everything was done I had two files called :

 

Quote

 

hostapd-custom_1.1_armhf.deb  

hostapd-custom-realtek_1.1_armhf.deb

 

 

I chose to install (dpkg -i) the second one (realtek) because that's what my usb dongle needs (at least that's my opinion)

 

After installing it, I tried to execute it by using the /etc/hostapd.realtek.conf 


 

Quote

 

# hostapd -dd /etc/hostapd.realtek.conf

 

 

 

What I got is :

Quote

 

random: Trying to read entropy from /dev/random

Configuration file: /etc/hostapd.realtek.conf

ctrl_interface_group=0

drv->ifindex=7

l2_sock_recv==l2_sock_xmit=0x0x1eb9af0

ioctl[SIOCSIWMODE]: Invalid argument

Could not set interface to mode(3)!

Could not set interface to master mode!

rtl871xdrv driver initialization failed.

hostapd_interface_deinit_free(0x1eb9550)

hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1

hostapd_interface_deinit(0x1eb9550)

wlx0013ef6c46e3: interface state UNINITIALIZED->DISABLED

hostapd_bss_deinit: deinit bss wlx0013ef6c46e3

wlx0013ef6c46e3: AP-DISABLED 

hostapd_cleanup(hapd=0x1eba170 (wlx0013ef6c46e3))

hostapd_free_hapd_data: Interface wlx0013ef6c46e3 wasn't started

hostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) -> hapd_deinit

hostapd_interface_free(0x1eb9550)

hostapd_interface_free: free hapd 0x1eba170

hostapd_cleanup_iface(0x1eb9550)

hostapd_cleanup_iface_partial(0x1eb9550)

hostapd_cleanup_iface: free iface=0x1eb9550

 

 

Here are also some other command's results that might be helpful:

 

lsusb

Quote

 

Bus 002 Device 006: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

 

 

 

iwconfig

Quote

 

wlx0013ef6c46e3  IEEE 802.11  ESSID:off/any  

          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   

          Retry short limit:7   RTS thr=2347 B   Fragment thr:off

          Encryption key:off

          Power Management:off

 

 

uname -a

Quote

 

Linux bananapi 4.13.16-sunxi #20 SMP Fri Nov 24 19:50:07 CET 2017 armv7l GNU/Linux

 

 

 

 

/etc/hostapd.realtek.conf

 

 

Quote

#
# armbian hostapd configuration example
#
# realtek mode
#

ssid=SSID
#interface=wlan0
interface=wlx0013ef6c46e3
hw_mode=g
channel=5
#bridge=br0
driver=rtl871xdrv

logger_syslog=0
logger_syslog_level=0
wmm_enabled=1
wpa=2
preamble=1

wpa_psk=66eb31d2b48d19ba216f2e50c6831ee11be98e2fa3a8075e30b866f4a5ccda27
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
auth_algs=1
macaddr_acl=0

#noscan=1

### IEEE 802.11n
#ieee80211n=1
#ht_capab=[HT40+][LDPC][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][DSSS_CCK-40][SMPS-STATIC]
#ht_capab=[HT40-][SHORT-GI-40][SHORT-GI-40][DSSS_CCK-40]
#ht_capab=[SHORT-GI-20][SHORT-GI-40][HT40+]
#ht_capab=[DSSS_CK-40][HT20+]
#ht_capab=
#country_code=US
#ieee80211d=1
### IEEE 802.11n

### IEEE 802.11a
#hw_mode=a
### IEEE 802.11a

### IEEE 802.11ac

#ieee80211ac=1
#vht_capab=[MAX-MPDU-11454][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][MAX-A-MPDU-LEN-EXP3]
#vht_capab=[MAX-MPDU-11454][SHORT-GI-80][RX-STBC-1][MAX-A-MPDU-LEN-EXP3]
#vht_capab=
#vht_oper_chwidth=1
#vht_oper_centr_freq_seg0_idx=42
### IEEE 802.11ac

# controlling enabled
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0

 

 


 

Also, I would like to mention that the USB dongle works properly as for the scanning of SSIDs using the  nmtui tool, but if I'm going to connect to one of them with the correct password,  nmtui  returns :


 

Quote

 

Could not activate connection: Activation failed.

 

 

 

Besides all these I also tried to use and the following solutions (but without any success):

 

https://github.com/jenssegers/RTL8188-hostapd

https://github.com/pritambaral/hostapd-rtl871xdrv

 

Also, I remember that jensseger's solution was working when I had bananian OS but it had an older kernel that I don't remember right now.

 

Does anyone else have this problem? 

 

Is there a chance of being a problem in the newer kernel and not driver's one?

 

Any idea, hint, help is welcome.

 

Thanks.

 

 

 

Edited by arronar
Posted
20 hours ago, arronar said:

Is there a chance of being a problem in the newer kernel and not driver's one?


It is possible that a driver in the new kernel is broken to some extend. The situation with those wireless chips is awful but I suspect you are running into a problem, that network-manager does not let you use your adaptor. You need to add wlx0013ef6c46e3 to ignored interfaces. I am also not sure you need a special realtek-hostapd for this adaptor. Try both methods.

echo "[keyfile]" > /etc/NetworkManager/conf.d/10-ignore-interfaces.conf
echo "unmanaged-devices=interface-name:wlx0013ef6c46e3" >> /etc/NetworkManager/conf.d/10-ignore-interfaces.conf
service network-manager restart

An armbian-config method should take care of this, but it also has some rough edges when setting AP.

 

In any case, I recommend you an upgrade to something like this. A class better than 8192.

Posted
1 hour ago, Igor said:

In any case, I recommend you an upgrade to something like this. A class better than 8192.

 

 

Did you make the Comfast 915AC work with latest version of hostapd and the rtl871xdrv driver or with the hostapd's default driver (nl80211)? 

Posted
11 minutes ago, arronar said:

with the hostapd's default driver


With a default driver.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines