lwfinger / rtw89

Driver for Realtek 8852AE, an 802.11ax device
GNU General Public License v2.0
1.25k stars 156 forks source link

wifi removed afterr todays update commit #45dde70 #277

Open salimp2009 opened 11 months ago

salimp2009 commented 11 months ago

Hi After todays update wifi is gone. During the update there were no errors but after the reboot wifi is gone

commit 45dde70 Manjaro kernel 5.15.133-1

Let me know how i can help to diagnose it. my networkcard Realtek RTL8852AE

I tried to manually install instead of the package manager to see the error and I get this

CC [M]  /home/salim/developer/rtw89/core.o
  CC [M]  /home/salim/developer/rtw89/chan.o
  CC [M]  /home/salim/developer/rtw89/mac80211.o
  CC [M]  /home/salim/developer/rtw89/mac.o
  CC [M]  /home/salim/developer/rtw89/phy.o
  CC [M]  /home/salim/developer/rtw89/fw.o
  CC [M]  /home/salim/developer/rtw89/cam.o
  CC [M]  /home/salim/developer/rtw89/efuse.o
  CC [M]  /home/salim/developer/rtw89/regd.o
/home/salim/developer/rtw89/regd.c: In function ‘rtw89_reg_6ghz_power_recalc’:
/home/salim/developer/rtw89/regd.c:518:39: error: ‘struct ieee80211_bss_conf’ has no member named ‘power_type’; did you mean ‘txpower_type’?
  518 |                 switch (vif->bss_conf.power_type) {
      |                                       ^~~~~~~~~~
      |                                       txpower_type
/home/salim/developer/rtw89/regd.c:519:22: error: ‘IEEE80211_REG_VLP_AP’ undeclared (first use in this function)
  519 |                 case IEEE80211_REG_VLP_AP:
      |                      ^~~~~~~~~~~~~~~~~~~~
/home/salim/developer/rtw89/regd.c:519:22: note: each undeclared identifier is reported only once for each function it appears in
/home/salim/developer/rtw89/regd.c:522:22: error: ‘IEEE80211_REG_LPI_AP’ undeclared (first use in this function)
  522 |                 case IEEE80211_REG_LPI_AP:
      |                      ^~~~~~~~~~~~~~~~~~~~
/home/salim/developer/rtw89/regd.c:525:22: error: ‘IEEE80211_REG_SP_AP’ undeclared (first use in this function); did you mean ‘IEEE80211_SEQ_TO_SN’?
  525 |                 case IEEE80211_REG_SP_AP:
      |                      ^~~~~~~~~~~~~~~~~~~
      |                      IEEE80211_SEQ_TO_SN
make[2]: *** [scripts/Makefile.build:289: /home/salim/developer/rtw89/regd.o] Error 1
make[1]: *** [Makefile:1907: /home/salim/developer/rtw89] Error 2
make: *** [Makefile:84: all] Error 2

I tried to go older commit but none of them worked, it say no make rule because Makefile does not exist.

I even tried to go to my previous working commit by using git checkout 2fd7ba9 but looks it does not exist any more (probably rebased?) so I got stuck with a non-working :(

lwfinger commented 11 months ago

I will fix those build errors as soon as possible. Strange as 5.15.0 built on my system.

salimp2009 commented 11 months ago

thank you :)

lwfinger commented 11 months ago

Sorry, but I have bad news for you, but the driver builds perfectly well under kernel 5.15.0 on my system. That means that Manjaro has modified the API, and I do not support such backports as described in README.md. A search shows that Manjarro is using 6.X kernels. Why have you not upgraded? If it is not possible to upgrade, I could probably fix the build for you, but not at no cost - I have decided to fix it for $50, which is a real deal as I will likely have at least $500 worth of time in the fix. If you want to go this route, please let me know, and I will give you the details for payment, and I will get more info regarding your system.

salimp2009 commented 11 months ago

Thank you for looking into. Your work is more valuable than I know but it I just installed Manjaro a year ago and did regular updates I did not select 5.15 on purpose Whatever manjaro releases i did Let me check if i can bump up too kernel 6 or maybe install Arch or Endevour . I use Arch on my desktop . Your offer is kind In case i need i will get back to you Thnks or if there is older version the repo i can use it as well

salimp2009 commented 11 months ago

also one thing if Manjaro is playing with Kernel how come it was working until those recent changes I wonder ?