aircrack-ng / rtl8188eus

RealTek RTL8188eus WiFi driver with monitor mode & frame injection support
925 stars 397 forks source link

Can't move interface to another namespace #247

Open uti5 opened 1 year ago

uti5 commented 1 year ago
# ip netns add foo
# iw phy phy0 set netns name foo      
command failed: Operation not supported (-95)
Ahmedzero800 commented 1 year ago

try sudo

MarcFontaine commented 4 months ago

The driver as is supports namespaces only for some kernel versions. It can be checked with:

iw phy phy0 info
Supported commands:
   * new_interface
   * set_interface
   * new_key
   * start_ap
   * new_station
   * set_bss
   * join_ibss
   * set_pmksa
   * del_pmksa
   * flush_pmksa
   * remain_on_channel
   * frame
   * set_channel
   * connect
   * disconnect

If * set_wiphy_netns is missing namespaces are not supported. Something like https://github.com/MarcFontaine/rtl8188eus/commit/d49a140420d81f9e14a47adab6272384c0040d47 seems to work to enable namespaces for newer kernels.