albfan / miraclecast

Connect external monitors to your system via Wifi-Display specification also known as Miracast
Other
3.85k stars 413 forks source link

Does miraclecast support wext adapters? #276

Open moham96 opened 6 years ago

moham96 commented 6 years ago

Hi, I have Realtek RTL8188EUS USB wireless Adapter. According to a pdf file supplied by Realtek, the chip supports p2p sink and source. Running the test-hardware-capabilities.sh gives:

command failed: No such device (-19)
cannot find physical device for wlp0s26u1u1

This is because the test-hardware-capabilities.sh script uses iw tools which uses cfg80211, unfortunately the RTL8188EUS uses wext and not cfg80211 and according to the pdf file linked above the p2p capabilites can be controlled using the iwpriv tool. So does miraclecast support wifi cards that uses wext and not cfg8011 ioctl ? and can the test-hardware-capabilites.sh script be ported to check for these types of adapters also ?

albfan commented 6 years ago

The script is only informative. I create it to help users to early detect if their devices has P2P capabilities.

We can work on it to support more devices, but that is not imperative.

If you know your device support P2P then miraclecast should work with it

Do you have any link about iw using only a driver, I guess it is agnostic about that

moham96 commented 6 years ago

If you know your device support P2P then miraclecast should work with it

Well I just tried it and miraclecast doesn't recognize my wifi adapter.

Do you have any link about iw using only a driver, I guess it is agnostic about that

quoting the linux wireless wiki

iw is a new nl80211 based CLI configuration utility for wireless devices. It supports all new drivers that have been added to the kernel recently. The old tool iwconfig, which uses Wireless Extensions interface, is deprecated and it's strongly recommended to switch to iw and nl80211.

albfan commented 6 years ago

Ok

Can you upload logs to see actual output? https://github.com/albfan/miraclecast/wiki/FAQ#log-for-support

I think the output of iwconfig is interesting too

moham96 commented 6 years ago

These are the logs using the commands in the wiki page. In the miracle-sinkctl I ran list and it returned no wifi cards but If I enable my laptop Broadcom internal card (which uses nl80211/cfg8011) I can see it in the output

logs.zip

moham96 commented 6 years ago

iwconfig output:

wlp0s26u1u1  IEEE 802.11bgn  ESSID:"Darkmatter-2"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:2.412 GHz  Access Point: 64:D1:54:2A:3D:96   
          Bit Rate:150 Mb/s   Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:****-****-****-****-****-****-****-****   Security mode:open
          Power Management:off
          Link Quality=100/100  Signal level=100/100  Noise level=0/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0