seemoo-lab / mobisys2018_nexmon_software_defined_radio

Proof of concept project for operating Broadcom Wi-Fi chips as arbitrary signal transmitters similar to software-defined radios (SDRs)
Other
766 stars 69 forks source link

How can I modify the channel? #18

Open chrissy-risk opened 3 years ago

chrissy-risk commented 3 years ago

What is the law for channel modification? For example, I want to change to channel 2. What should the value be changed? image

matthiasseemoo commented 3 years ago

here is the definition for chanspecs: https://github.com/seemoo-lab/nexmon/blob/master/patches/include/channels.h https://github.com/seemoo-lab/nexmon/blob/master/patches/include/channels.h

here is an example on how to use those macros: activate 20 MHz wide channel 7: set_chanspec(wlc, CH20MHZ_CHSPEC(7)); activate 40 MHz wide channel 7: set_chanspec(wlc, CH40MHZ_CHSPEC(7, WL_CHANSPEC_CTL_SB_L)); activate 80 MHz wide channel 7 (technically possible, though officially not specified): set_chanspec(wlc, CH80MHZ_CHSPEC(7, WL_CHANSPEC_CTL_SB_L));

All your channel specifications need to be accepted as valid chanspecs according to your regulations.c file that you can find in some of our projects in case you want to use non-standard channels.

On 11. May 2021, at 08:39, chrissy-risk @.***> wrote:

What is the law for channel modification? For example, I want to change to channel 2. What should the value be changed? https://user-images.githubusercontent.com/78351171/117769640-899b5980-b266-11eb-9660-deab05c2bc6c.png — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/seemoo-lab/mobisys2018_nexmon_software_defined_radio/issues/18, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACZ773S7P46FLDRKUYQICU3TNDGIJANCNFSM44UPHFMA.

IceNotCold commented 1 year ago

Where can I excute the command "set_chanspec"? Linux or nexus?

jlinktu commented 1 year ago

set_chanspec is a function call. You want to put that in a patch file located in mobisys2018_nexmon_software_defined_radio/src. For example, you may want to add another IOCTL case here.