aircrack-ng / rtl8812au

RTL8812AU/21AU and RTL8814AU driver with monitor mode and frame injection
GNU General Public License v2.0
3.5k stars 767 forks source link

Fix change_beacon for kernel 6.7 #1134

Closed crivasr closed 6 months ago

crivasr commented 8 months ago

With the latest version of the kernel, the change_beacon function from the struct cfg80211_ops expects a cfg80211_ap_update struct as the last argument instead of cfg80211_beacon_data.

reference (It was changed to cfg80211_ap_settings then to cfg80211_ap_update)

Edit: this also fixes #1126

ja1den commented 8 months ago

This works for me. Thanks!

For anyone on NixOS, here's how I'm applying it:

boot.extraModulePackages = [
  (
    config.boot.kernelPackages.rtl88xxau-aircrack.overrideAttrs
    {
      # https://github.com/aircrack-ng/rtl8812au/pull/1134
      src = pkgs.fetchFromGitHub {
        owner = "crivasr";
        repo = "rtl8812au";
        rev = "c0d16813f5af3b464cdb6dd415c83d1f238e3548";
        hash = "sha256-jhX5apYbcYz6+kGGe1xZXXTerQJm3Gv4DoowDSSY8MY=";
      };
    }
  )
];
kimocoder commented 6 months ago

Merged, tnx! Fixed warning also, cheers!