Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CN S1G 761.5 Channel can not be set #25

Open
webrtcccccc opened this issue Oct 6, 2023 · 1 comment
Open

CN S1G 761.5 Channel can not be set #25

webrtcccccc opened this issue Oct 6, 2023 · 1 comment

Comments

@webrtcccccc
Copy link

Dear newracom sir,

I found some problems when testing open AP on CN channel. When I set S1G_CH:7615, the following error is displayed.
[------------LOG------------]
[ctrl_iface_receive_response] cmd: set country CN
wim: 0 country code:CN freq:0
api: 0 CC(CN) from driver is different from CC(US) from cal. data
s1g: 0 index:5 CC: 'CN', # of CH:14
wim: 0 auto txgain is activated
reply_len: 2

reply: OK

[wifi_init] TX Power (18 dBm)
[wifi_task] wifi_init Success !!
[wifi_start_softap] Trying to start Soft AP (SSID:my_demo, S1G_CH:7615 , BW:1)
[ctrl_iface_receive_response] cmd: add_network
reply_len: 1

reply: 0

[0][_nrc_wifi_set_state] state=DISCONNECTED
[STAGetNonS1GFreqWithBw] invalid frequency, s1g_freq:7615
[0][nrc_wifi_softap_set_conf] invalid s1g_freq:7615, bw:1
[wifi_start_softap] Fail to set sotftap config
[wifi_task] ASSERT! Fail to start softap
[------------END------------]

In addition, when I tested S1G 7555, I could turn on the AP normally, but it was turned on to 5210. The corresponding value should be 5180 according to the table.
[------------LOG------------]
[ctrl_iface_receive_response] cmd: set country CN
wim: 0 country code:CN freq:0
api: 0 CC(CN) from driver is different from CC(US) from cal. data
s1g: 0 index:5 CC: 'CN', # of CH:14
wim: 0 auto txgain is activated
reply_len: 2

reply: OK

[wifi_init] TX Power (18 dBm)
[wifi_task] wifi_init Success !!
[wifi_start_softap] Trying to start Soft AP (SSID:my_demo, S1G_CH:7555 , BW:1)
[ctrl_iface_receive_response] cmd: add_network
reply_len: 1

reply: 0

[0][_nrc_wifi_set_state] state=DISCONNECTED
[ctrl_iface_receive_response] cmd: set_network 0 mode 2
reply_len: 2

reply: OK

[ctrl_iface_receive_response] cmd: ndp_preq 1
wim: 0 set ndp probe request: 1
reply_len: 2

reply: OK

[ctrl_iface_receive_response] cmd: set_network 0 frequency 5210
reply_len: 2

reply: OK

[ctrl_iface_receive_response] cmd: set_network 0 scan_freq 5210
reply_len: 2

reply: OK

[ctrl_iface_receive_response] cmd: set_network 0 ssid "my_demo"
reply_len: 2

reply: OK

[ctrl_iface_receive_response] cmd: set_network 0 pairwise CCMP
reply_len: 2

reply: OK

[ctrl_iface_receive_response] cmd: set_network 0 group CCMP
reply_len: 2

reply: OK

[ctrl_iface_receive_response] cmd: set_network 0 key_mgmt WPA-PSK
reply_len: 2

reply: OK

[ctrl_iface_receive_response] cmd: set_network 0 proto RSN
reply_len: 2

reply: OK
[------------END------------]

image

@webrtcccccc
Copy link
Author

It seems that there are some discrepancies between the channel mapping table in the library and the documentation (UG-7292-003-S1G_Channel.pdf).

image
UG-7292-003-S1G_Channel.pdf

7555 in DOC is not mapping to 5210, but in LIB is.
CHANNEL_MAPPING_TABLE <7555, 5210, 1, 0xD, 9, 0, 0x1D42, 0x2A, 5, 0>
LIB CHANNEL_MAPPING_TABLE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant