Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to create a new network interface for wifi
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
George528
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2021
Posts: 97

PostPosted: Fri Jun 04, 2021 9:24 pm    Post subject: How to create a new network interface for wifi Reply with quote

for some reason i have only a ethernet, and don't have a wifi interfais ce (it should be wlp6s0)

i configured my kernel and it should support wireless network.

This is what is says when i run lshw :
Code:
satellite ~ # lshw -C network
  *-network DISABLED       
       description: Ethernet interface
       product: RTL810xE PCI Express Fast Ethernet controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: enp1s0
       version: 05
       serial: dc:0e:a1:3e:51:e4
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical
       configuration: broadcast=yes driver=r8169 driverversion=5.10.27-gentoo latency=0 link=no multicast=yes
       resources: irq:16 ioport:4000(size=256) memory:d0404000-d0404fff memory:d0400000-d0403fff
  *-network UNCLAIMED
       description: Network controller
       product: RTL8188CE 802.11b/g/n WiFi Adapter
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:06:00.0
       version: 01
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: latency=0
       resources: ioport:2000(size=256) memory:d1500000-d1503fff
  *-network
       description: Ethernet interface
       physical id: 8
       bus info: usb@2:1.2.3
       logical name: enp0s29u1u2u3i5
       serial: 0c:37:96:12:1f:8c
       capabilities: ethernet physical
       configuration: broadcast=yes driver=cdc_ncm driverversion=5.10.27-gentoo firmware=CDC NCM ip=192.168.0.15 link=yes multicast=yes
satellite ~ #



I just don't see a wifi interface:

Code:
satellite /sys/class/net # ls
enp0s29u1u2u3i5  enp1s0  lo  sit0


Please help me. Let me know if you need more info
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3929

PostPosted: Fri Jun 04, 2021 9:49 pm    Post subject: Reply with quote

Do you have
Code:

CONFIG_RTL8192CE=m

in your .config
?
Maybe these also
Code:

CONFIG_RTLWIFI=m
CONFIG_RTLWIFI_PCI=m
CONFIG_RTLWIFI_USB=m
CONFIG_RTLWIFI_DEBUG=y
CONFIG_RTL8192C_COMMON=m
CONFIG_RTL8723_COMMON=m
CONFIG_RTLBTCOEXIST=m
CONFIG_RTL8XXXU=m

Better also have
linux-firmware
installed.

Plz try also
Code:

rfkill list

and if blocked unblock it.

If the kernel's RTL8192CE does not work for you,then maybe build the driver your self from
https://github.com/FreedomBen/rtl8188ce-linux-driver
_________________
:)
Back to top
View user's profile Send private message
George528
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2021
Posts: 97

PostPosted: Fri Jun 04, 2021 10:12 pm    Post subject: Reply with quote

alamahant wrote:
Do you have
Code:

CONFIG_RTL8192CE=m

in your .config
?
Maybe these also
Code:

CONFIG_RTLWIFI=m
CONFIG_RTLWIFI_PCI=m
CONFIG_RTLWIFI_USB=m
CONFIG_RTLWIFI_DEBUG=y
CONFIG_RTL8192C_COMMON=m
CONFIG_RTL8723_COMMON=m
CONFIG_RTLBTCOEXIST=m
CONFIG_RTL8XXXU=m

Better also have
linux-firmware
installed.

Plz try also
Code:

rfkill list

and if blocked unblock it.

If the kernel's RTL8192CE does not work for you,then maybe build the driver your self from
https://github.com/FreedomBen/rtl8188ce-linux-driver


CONFIG_RTL8192 wasnt enabled, so i set it as module, the rest of the modules were already enabled. For safet reasons i also enabled extra modules, i fought it won't hurt. After compiling the kernel and reboot. My Ethernet interface is also not working.

https://i.imgur.com/ueAZiWo.png

edit: oh nvm, that is an off topic problem. it has nothing to do with the wifi modules.
wlp6so is showing now! thanks.
now i have to figure out how to configure it

rfkill list doesn't do anything (no errors)
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3929

PostPosted: Fri Jun 04, 2021 10:25 pm    Post subject: Reply with quote

Good that wifi s showing up
In order to get rid of disgusting iface namings like
enpxxxxxxxxx
wlpxxxxxxxxx

you can use
Code:

net.ifnames=0 biosdevname=0

in linux line in /etc/default/grub
and update grub.
Then you will get
eth0
wlan0
But please remember to update the net scripts symlinks in /etc/init.d
_________________
:)
Back to top
View user's profile Send private message
George528
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2021
Posts: 97

PostPosted: Fri Jun 04, 2021 10:30 pm    Post subject: Reply with quote

alamahant wrote:
Good that wifi s showing up
In order to get rid of disgusting iface namings like
enpxxxxxxxxx
wlpxxxxxxxxx

you can use
Code:

net.ifnames=0 biosdevname=0

in linux line in /etc/default/grub
and update grub.
Then you will get
eth0
wlan0
But please remember to update the net scripts symlinks in /etc/init.d


thanks a lot!!
these names always annoyed me.
you are a true hero...
God bless you :D
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3929

PostPosted: Fri Jun 04, 2021 10:47 pm    Post subject: Reply with quote

Use "wpa_supplicant"
From the Wiki
in
/etc/wpa_supplicant/wpa_supplicant.conf
Quote:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
#ap_scan=0
#update_config=1

network={
ssid="YourSSID"
psk="your-secret-key"
scan_ssid=1
proto=RSN
key_mgmt=WPA-PSK
group=CCMP TKIP
pairwise=CCMP TKIP
priority=5
}

appending to
/etc/conf.d/net
something like this
Code:

#####WIRELESS
modules="wpa_supplicant"
config_wlan0="192.168.2.4/24"
routes_wlan0="default via 192.168.2.1"
dns_servers_wlan0="192.168.2.1"


_________________
:)
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
Page 1 of 1

 
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