Skip to content

Instantly share code, notes, and snippets.

@momu
Created November 24, 2016 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save momu/d4790534c23305e49178545dd34dbe85 to your computer and use it in GitHub Desktop.
Save momu/d4790534c23305e49178545dd34dbe85 to your computer and use it in GitHub Desktop.
diff -w reghack.c reghack2.c
1,2c1
< /*
< * reghack - Utility to binary-patch the embedded mac80211 regulatory rules.
---
> /* reghack - Utility to binary-patch the embedded mac80211 regulatory rules.
123a123,126
> }, {
> /* March 2016 addition */
> .desc = "core world8(?) regdomain in cfg80211/reg.o (new rule)",
> .reg = REG_MATCH("00", 8, NL80211_DFS_UNSET, REG_RULE(2402, 2472, 40, 6, 20, 0))
126c129
< /* regdb.txt matches (new) */
---
> /* regdb.txt matches */
132a136,139
> }, {
> /* March 2016 addition */
> .desc = "embedded US regdomain in cfg80211/regdb.o (new rule)",
> .reg = REG_MATCH("US", 6, NL80211_DFS_FCC, REG_RULE(2402, 2472, 40, 0, 30, 0))
239a247
> /* This is what the rules above get replaced with */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment