2017-09-21 18:02:03

by Phani Siriki

[permalink] [raw]
Subject: Query on iw command to set txq params

Hi All

I am trying to apply the path mentioned below to set txq params using
iw command.

http://www.spinics.net/lists/linux-wireless/msg42585.html

But I am getting below error.

root@teste-VirtualBox:~/old_iw/iw-0.9.17# ./iw list | grep Wiphy
Wiphy mn00s05
Wiphy mn00s04
Wiphy mn00s03
Wiphy mn00s02
root@teste-VirtualBox:~/old_iw/iw-0.9.17#
root@teste-VirtualBox:~/old_iw/iw-0.9.17#
root@teste-VirtualBox:~/old_iw/iw-0.9.17#
root@teste-VirtualBox:~/old_iw/iw-0.9.17# ./iw --debug phy mn00s03 set
txq_params 1
configuring TX queue for VI
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[HEADER] 16 octets
.nlmsg_len = 96
.nlmsg_type = 2 <ERROR>
.nlmsg_flags = 0 <>
.nlmsg_seq = 1506013146
.nlmsg_pid = 5328
[ERRORMSG] 20 octets
.error = -22 "Invalid argument"
[ORIGINAL MESSAGE] 16 octets
.nlmsg_len = 16
.nlmsg_type = 30 <0x1e>
.nlmsg_flags = 5 <REQUEST,ACK>
.nlmsg_seq = 1506013146
.nlmsg_pid = 5328
--------------------------- END NETLINK MESSAGE ---------------------------
command failed: Invalid argument (-22)
root@teste-VirtualBox:~/old_iw/iw-0.9.17#

I am using mininet wifi to create topology with 4 APs.

Could someone suggest how to proceed on this?

Best Regards
Phani


2017-09-28 15:52:06

by Johannes Berg

[permalink] [raw]
Subject: Re: Query on iw command to set txq params

On Thu, 2017-09-28 at 10:40 -0500, Phani Siriki wrote:
> Hi Johannes Berg
>
> Thank you for your reply.
>
> Could you please point me to any reference implementation I can check
> to make the correct modification?

Why don't you just set it in hostapd?

johannes

2017-09-28 15:36:54

by Johannes Berg

[permalink] [raw]
Subject: Re: Query on iw command to set txq params

On Thu, 2017-09-21 at 13:01 -0500, Phani Siriki wrote:
> Hi All
>
> I am trying to apply the path mentioned below to set txq params using
> iw command.
>
> http://www.spinics.net/lists/linux-wireless/msg42585.html

The patch is wrong (now?), it needs to use the *netdev* not just the
wiphy.

johannes

2017-09-28 16:08:36

by Phani Siriki

[permalink] [raw]
Subject: Re: Query on iw command to set txq params

Hi Johannes Berg

I am trying to change the parameters for wireless mesh backbone
router. Is hostapd used for AP type configuration?

Best Regards
Phani

On Thu, Sep 28, 2017 at 10:52 AM, Johannes Berg
<[email protected]> wrote:
> On Thu, 2017-09-28 at 10:40 -0500, Phani Siriki wrote:
>> Hi Johannes Berg
>>
>> Thank you for your reply.
>>
>> Could you please point me to any reference implementation I can check
>> to make the correct modification?
>
> Why don't you just set it in hostapd?
>
> johannes

2017-09-28 15:40:37

by Phani Siriki

[permalink] [raw]
Subject: Re: Query on iw command to set txq params

Hi Johannes Berg

Thank you for your reply.

Could you please point me to any reference implementation I can check
to make the correct modification?

Best Regards
Phani

On Thu, Sep 28, 2017 at 10:36 AM, Johannes Berg
<[email protected]> wrote:
> On Thu, 2017-09-21 at 13:01 -0500, Phani Siriki wrote:
>> Hi All
>>
>> I am trying to apply the path mentioned below to set txq params using
>> iw command.
>>
>> http://www.spinics.net/lists/linux-wireless/msg42585.html
>
> The patch is wrong (now?), it needs to use the *netdev* not just the
> wiphy.
>
> johannes