* [PATCH 1/3] wl1251: fix TSF calculation
2012-06-16 19:26 [PATCH 0/3] wl1251: maemo fixes Grazvydas Ignotas
@ 2012-06-16 19:26 ` Grazvydas Ignotas
2012-06-20 9:23 ` Guido Gavilanes
2012-06-16 19:26 ` [PATCH 2/3] wl1251: always report beacon loss to the stack Grazvydas Ignotas
` (2 subsequent siblings)
3 siblings, 1 reply; 7+ messages in thread
From: Grazvydas Ignotas @ 2012-06-16 19:26 UTC (permalink / raw)
To: John W. Linville; +Cc: Luciano Coelho, linux-wireless, Grazvydas Ignotas
Cast MSB part of current TSF to u64 to prevent loss of most
significant bits. MSB should also be shifted by 32.
Patch based on old maemo patch by:
Yuri Kululin <ext-yuri.kululin@nokia.com>
Yuri Ershov <ext-yuri.ershov@nokia.com>
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
---
drivers/net/wireless/ti/wl1251/acx.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/wireless/ti/wl1251/acx.c b/drivers/net/wireless/ti/wl1251/acx.c
index ad87a1a..db6430c 100644
--- a/drivers/net/wireless/ti/wl1251/acx.c
+++ b/drivers/net/wireless/ti/wl1251/acx.c
@@ -869,7 +869,7 @@ int wl1251_acx_tsf_info(struct wl1251 *wl, u64 *mactime)
}
*mactime = tsf_info->current_tsf_lsb |
- (tsf_info->current_tsf_msb << 31);
+ ((u64)tsf_info->current_tsf_msb << 32);
out:
kfree(tsf_info);
--
1.7.0.4
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH 1/3] wl1251: fix TSF calculation
2012-06-16 19:26 ` [PATCH 1/3] wl1251: fix TSF calculation Grazvydas Ignotas
@ 2012-06-20 9:23 ` Guido Gavilanes
0 siblings, 0 replies; 7+ messages in thread
From: Guido Gavilanes @ 2012-06-20 9:23 UTC (permalink / raw)
To: Grazvydas Ignotas; +Cc: John W. Linville, Luciano Coelho, linux-wireless
Hello all,
Regarding the TSF, is there a way to read from an outside program the
TSF to help stations or programs have a "synchronization" low level
reference time?
Any ideas would be appreciated!
Thank you!
Guido
On Sat, 2012-06-16 at 22:26 +0300, Grazvydas Ignotas wrote:
> Cast MSB part of current TSF to u64 to prevent loss of most
> significant bits. MSB should also be shifted by 32.
>
> Patch based on old maemo patch by:
> Yuri Kululin <ext-yuri.kululin@nokia.com>
> Yuri Ershov <ext-yuri.ershov@nokia.com>
>
> Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
> ---
> drivers/net/wireless/ti/wl1251/acx.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/wireless/ti/wl1251/acx.c b/drivers/net/wireless/ti/wl1251/acx.c
> index ad87a1a..db6430c 100644
> --- a/drivers/net/wireless/ti/wl1251/acx.c
> +++ b/drivers/net/wireless/ti/wl1251/acx.c
> @@ -869,7 +869,7 @@ int wl1251_acx_tsf_info(struct wl1251 *wl, u64 *mactime)
> }
>
> *mactime = tsf_info->current_tsf_lsb |
> - (tsf_info->current_tsf_msb << 31);
> + ((u64)tsf_info->current_tsf_msb << 32);
>
> out:
> kfree(tsf_info);
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/3] wl1251: always report beacon loss to the stack
2012-06-16 19:26 [PATCH 0/3] wl1251: maemo fixes Grazvydas Ignotas
2012-06-16 19:26 ` [PATCH 1/3] wl1251: fix TSF calculation Grazvydas Ignotas
@ 2012-06-16 19:26 ` Grazvydas Ignotas
2012-06-16 19:26 ` [PATCH 3/3] wl1251: Fix memory leaks in SPI initialization Grazvydas Ignotas
2012-07-05 9:45 ` [PATCH 0/3] wl1251: maemo fixes Grazvydas Ignotas
3 siblings, 0 replies; 7+ messages in thread
From: Grazvydas Ignotas @ 2012-06-16 19:26 UTC (permalink / raw)
To: John W. Linville; +Cc: Luciano Coelho, linux-wireless, Grazvydas Ignotas
Always report beacon loss to the stack, not only when in powersave
state. This is because there's possibility that the driver disables
PSM before it handles old BSS_LOSE_EVENT, so beacon loss has to be
reported.
Patch based on old maemo patch by:
Janne Ylalehto <janne.ylalehto@nokia.com>
Juuso Oikarinen <juuso.oikarinen@nokia.com>
Luciano Coelho <luciano.coelho@nokia.com>
Yuri Ershov <ext-yuri.ershov@nokia.com>
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
---
drivers/net/wireless/ti/wl1251/event.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/ti/wl1251/event.c b/drivers/net/wireless/ti/wl1251/event.c
index 9f15cca..5ec50a4 100644
--- a/drivers/net/wireless/ti/wl1251/event.c
+++ b/drivers/net/wireless/ti/wl1251/event.c
@@ -76,8 +76,7 @@ static int wl1251_event_process(struct wl1251 *wl, struct event_mailbox *mbox)
}
}
- if (vector & SYNCHRONIZATION_TIMEOUT_EVENT_ID &&
- wl->station_mode != STATION_ACTIVE_MODE) {
+ if (vector & SYNCHRONIZATION_TIMEOUT_EVENT_ID) {
wl1251_debug(DEBUG_EVENT, "SYNCHRONIZATION_TIMEOUT_EVENT");
/* indicate to the stack, that beacons have been lost */
--
1.7.0.4
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH 3/3] wl1251: Fix memory leaks in SPI initialization
2012-06-16 19:26 [PATCH 0/3] wl1251: maemo fixes Grazvydas Ignotas
2012-06-16 19:26 ` [PATCH 1/3] wl1251: fix TSF calculation Grazvydas Ignotas
2012-06-16 19:26 ` [PATCH 2/3] wl1251: always report beacon loss to the stack Grazvydas Ignotas
@ 2012-06-16 19:26 ` Grazvydas Ignotas
2012-07-05 9:45 ` [PATCH 0/3] wl1251: maemo fixes Grazvydas Ignotas
3 siblings, 0 replies; 7+ messages in thread
From: Grazvydas Ignotas @ 2012-06-16 19:26 UTC (permalink / raw)
To: John W. Linville; +Cc: Luciano Coelho, linux-wireless, Grazvydas Ignotas
This patch fixes two memory leaks in the SPI initialization code.
Patch based on old maemo patch by:
Yuri Ershov <ext-yuri.ershov@nokia.com>
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
---
drivers/net/wireless/ti/wl1251/spi.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/net/wireless/ti/wl1251/spi.c b/drivers/net/wireless/ti/wl1251/spi.c
index 87f6305..567660c 100644
--- a/drivers/net/wireless/ti/wl1251/spi.c
+++ b/drivers/net/wireless/ti/wl1251/spi.c
@@ -73,6 +73,8 @@ static void wl1251_spi_reset(struct wl1251 *wl)
spi_sync(wl_to_spi(wl), &m);
wl1251_dump(DEBUG_SPI, "spi reset -> ", cmd, WSPI_INIT_CMD_LEN);
+
+ kfree(cmd);
}
static void wl1251_spi_wake(struct wl1251 *wl)
@@ -127,6 +129,8 @@ static void wl1251_spi_wake(struct wl1251 *wl)
spi_sync(wl_to_spi(wl), &m);
wl1251_dump(DEBUG_SPI, "spi init -> ", cmd, WSPI_INIT_CMD_LEN);
+
+ kfree(cmd);
}
static void wl1251_spi_reset_wake(struct wl1251 *wl)
--
1.7.0.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 0/3] wl1251: maemo fixes
2012-06-16 19:26 [PATCH 0/3] wl1251: maemo fixes Grazvydas Ignotas
` (2 preceding siblings ...)
2012-06-16 19:26 ` [PATCH 3/3] wl1251: Fix memory leaks in SPI initialization Grazvydas Ignotas
@ 2012-07-05 9:45 ` Grazvydas Ignotas
2012-07-05 9:55 ` Grazvydas Ignotas
3 siblings, 1 reply; 7+ messages in thread
From: Grazvydas Ignotas @ 2012-07-05 9:45 UTC (permalink / raw)
To: John W. Linville; +Cc: Luciano Coelho, linux-wireless
On Sat, Jun 16, 2012 at 10:26 PM, Grazvydas Ignotas <notasas@gmail.com> wrote:
> Here are a few old wl1251 patches found in maemo repositories that haven't
> ever reached mainline. I did not keep 'From:' and s-o-b as the patches are
> rebased and slightly modified, also most emails are probably dead due to
> Nokia's reorganization, so original authors are just listed in commit
> messages.
Anything wrong with these? There was a comment on 0001, but that was a
question unrelated to the patch itself.
>
> Grazvydas Ignotas (3):
> wl1251: remove unused filter_work
> wl1251: fix filtering support
> wl1251: send filters to firmware as they are set
I've just noticed this shortlog is wrong, but patches themselves that
were sent to the list are correct, do I need to resend? Here is the
right shortlog:
Grazvydas Ignotas (3):
wl1251: fix TSF calculation
wl1251: always report beacon loss to the stack
wl1251: Fix memory leaks in SPI initialization
drivers/net/wireless/ti/wl1251/acx.c | 2 +-
drivers/net/wireless/ti/wl1251/event.c | 3 +--
drivers/net/wireless/ti/wl1251/spi.c | 4 ++++
3 files changed, 6 insertions(+), 3 deletions(-)
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH 0/3] wl1251: maemo fixes
2012-07-05 9:45 ` [PATCH 0/3] wl1251: maemo fixes Grazvydas Ignotas
@ 2012-07-05 9:55 ` Grazvydas Ignotas
0 siblings, 0 replies; 7+ messages in thread
From: Grazvydas Ignotas @ 2012-07-05 9:55 UTC (permalink / raw)
To: John W. Linville; +Cc: Luciano Coelho, linux-wireless
On Thu, Jul 5, 2012 at 12:45 PM, Grazvydas Ignotas <notasas@gmail.com> wrote:
> On Sat, Jun 16, 2012 at 10:26 PM, Grazvydas Ignotas <notasas@gmail.com> wrote:
>> Here are a few old wl1251 patches found in maemo repositories that haven't
>> ever reached mainline. I did not keep 'From:' and s-o-b as the patches are
>> rebased and slightly modified, also most emails are probably dead due to
>> Nokia's reorganization, so original authors are just listed in commit
>> messages.
>
> Anything wrong with these? There was a comment on 0001, but that was a
> question unrelated to the patch itself.
Whoops, just noticed they went into -rc, I was expecting them in
wireless-next :)
Sorry for the noise.
--
Gražvydas
^ permalink raw reply [flat|nested] 7+ messages in thread