SliTaz SliTaz Forum

You are not logged in.

#1 2013-12-19 00:05:55

sixofeight
Member
Registered: 2013-07-02
Posts: 234

wifi power-management conf

Hi

I-m using Sz4 with wifi only-(ath9k/Atheros 9271 + firmware)..it works,

A look at /var/log/messages points out that i have every 5 min (exacly)

a deauthenticating by local choice (reason=3) and reauthenticating.

iwconfig shows power Managment=off

I found out that this is not the case anymore if I set

"iwconfig wlan0 power on" in a root-terminal.

now i tried to get this saved somehow.In /etc/network.conf I found a promissing option:

WIFI_IWCONFIG_ARGS="".

I tried "power on", "wlan0 power on", "iwconfig wlan0 power on", with and without the quotes with no effect,after connecting power-management is still off.

anyone who knows what I'm doing wrong, please share your knowledge.

cheers

Offline

#2 2013-12-19 05:06:58

sixofeight
Member
Registered: 2013-07-02
Posts: 234

Re: wifi power-management conf

Part2

Hi

I forgot to say that the de-reauthentication doesn't occur,

(with Power Management=off), if Data-Traffic goes in or out, means it

doesn't interrupt a download for example.Only If i do nothing it goes

off/on every 5 min.

any hints how to solve this would be appreciated

thanks

Offline

#3 2013-12-19 08:02:35

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: wifi power-management conf

Add to the bottom of /etc/network.conf

[c]WIFI_POWER_MANAGEMENT="on"[/c]

Open /etc/init.d/network.sh

Add this between fi on line 56 and status on line 57

[c]if [ "$WIFI_POWER_MANAGEMENT" != "" ]; then[/c]

[c]iwconfig $WIFI_INTERFACE power $WIFI_POWER_MANAGEMENT[/c]

[c]fi[/c]

Offline

#4 2013-12-19 09:57:04

sixofeight
Member
Registered: 2013-07-02
Posts: 234

Re: wifi power-management conf

Hi mojo

In /etc/init.d/network.sh

I found fi at Line 53 / status at 54. There, I've added your code, now it is:

53  fi

54  if [ "$WIFI_POWER_MANAGEMENT" != "" ]; then

55  iwconfig $WIFI_INTERFACE power $WIFI_POWER_MANAGEMENT

56  fi

57  status

and it works like a charm

Thank you very much for your help

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.020 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]