Code Monkey home page Code Monkey logo

Comments (2)

CodePhase avatar CodePhase commented on July 17, 2024

While I can't test it right now, you could try this patch file instead of the one already supplied

--- regd.c.orig 2022-01-27 10:13:54.541139999 -0500
+++ kernel/linux-4.18.0-348.7.1.el8_5/drivers/net/wireless/ath/regd.c   2022-01-27 10:12:35.130585303 -0500
@@ -36,19 +36,30 @@
 #define ATH_2GHZ_CH01_11       REG_RULE(2412-10, 2462+10, 40, 0, 20, 0)
 
 /* We enable active scan on these a case by case basis by regulatory domain */
+#ifdef CONFIG_ATH_USER_REGD
+#define ATH_2GHZ_CH12_13       REG_RULE(2467-10, 2472+10, 40, 0, 20, 0)
+#define ATH_2GHZ_CH14          REG_RULE(2484-10, 2484+10, 40, 0, 20, 0)
+#else
 #define ATH_2GHZ_CH12_13       REG_RULE(2467-10, 2472+10, 40, 0, 20,\
                                         NL80211_RRF_NO_IR)
 #define ATH_2GHZ_CH14          REG_RULE(2484-10, 2484+10, 40, 0, 20,\
                                         NL80211_RRF_NO_IR | \
                                         NL80211_RRF_NO_OFDM)
+#end
 
 /* We allow IBSS on these on a case by case basis by regulatory domain */
+#ifdef CONFIG_ATH_USER_REGD
+#define ATH_5GHZ_5150_5350     REG_RULE(5150-10, 5350+10, 80, 0, 30, 0)
+#define ATH_5GHZ_5470_5850     REG_RULE(5470-10, 5850+10, 80, 0, 30, 0)
+#define ATH_5GHZ_5725_5850     REG_RULE(5725-10, 5850+10, 80, 0, 30, 0)
+#else
 #define ATH_5GHZ_5150_5350     REG_RULE(5150-10, 5350+10, 80, 0, 30,\
                                         NL80211_RRF_NO_IR)
 #define ATH_5GHZ_5470_5850     REG_RULE(5470-10, 5850+10, 80, 0, 30,\
                                         NL80211_RRF_NO_IR)
 #define ATH_5GHZ_5725_5850     REG_RULE(5725-10, 5850+10, 80, 0, 30,\
                                         NL80211_RRF_NO_IR)
+#endif
 
 #define ATH_2GHZ_ALL           ATH_2GHZ_CH01_11, \
                                ATH_2GHZ_CH12_13, \

from patch-atheros-regdom.

Genxster1998 avatar Genxster1998 commented on July 17, 2024

Ohh i just seen the code its fairly simple to use ch01_ch11 config in rest
Thanks

from patch-atheros-regdom.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.