Applying a patch

Hi!,

I want to apply a couple of patches:

  • package/kernel/mac80211/patches/402-ath_regd_optional.patch
  • package/kernel/mac80211/patches/404-regd_no_assoc_hints.patch

Is it enough if i copy them to target/linux/ar71xx/patches-4.4/ ? before i compile my new firmware or do i need to do anything else?

Thanks!

Please read
https://wiki.openwrt.org/doc/devel/patches

I don't really understand that guide, i want to apply an already existing patch and apparently that guide explains how to create a new patch or edit an existing one?

No this is for all kinds of patches ...

Please note you want to add following patches

package/kernel/mac80211/patches/402-ath_regd_optional.patch
package/kernel/mac80211/patches/404-regd_no_assoc_hints.patch

These are build with mac80211 backports (*) and not with any kernel source.

(*) includes drivers and wifi stack
Latest version is
PKG_VERSION:=2017-01-31

Ok, this is what i have done so far:

make target/linux/{clean,prepare} V=s QUILT=1
cd build_dir/target-mips_24kc_musl/linux-ar71xx_generic/linux-4.4.74/
cd ../../../../
make target/linux/update package/kernel/mac80211/patches/402-ath_regd_optional.patch V=s
make target/linux/update package/kernel/mac80211/patches/404-regd_no_assoc_hints.patch V=s
cd ../../../../

But if i run quilt series i don't see my patches listed?