Skip to contentSkip to conversation

ath9k: drop connection on kernel 2.6.28-1

ath9k-devel Alex 2 participants 2 messages Mar 11, 2009

lore
Share & tools
lore

Alex

author
#0 lore raw

hi everybody,
I have the problem of the dropping connection every 20-30 minutes using the ath9k drivers!! I see all of your patches around, but i'm not able to patch original files because of they are different...for example file /compat-wireless-2.6/driver/net/wireless/ath9k/core.h doesn't exist!!! i think it was replaced by the file "ath9k.h" seeing the inclusion in main.c.. I see also the recv.c patch but is different too... In this patch i have to apply this patch

--- a/drivers/net/wireless/ath9k/recv.c
<http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.28.y.git;a=blob;f=drivers/net/wireless/ath9k/recv.c;h=504a0444d89f853672a4abd71886cc17e3068ff9;hb=87a071a978a7defb98c278afbae066a670a973de>
+++ b/drivers/net/wireless/ath9k/recv.c
<http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.28.y.git;a=blob;f=drivers/net/wireless/ath9k/recv.c;h=b9b36cbc6b8d89a5f6fdd596afa7c714b0398159;hb=f03b6a5feda314415ba0c1b53b44e57e59fab11f>
@@ -627,9
<http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.28.y.git;a=blob;f=drivers/net/wireless/ath9k/recv.c;h=504a0444d89f853672a4abd71886cc17e3068ff9;hb=87a071a978a7defb98c278afbae066a670a973de#l627>
+627,8
<http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.28.y.git;a=blob;f=drivers/net/wireless/ath9k/recv.c;h=b9b36cbc6b8d89a5f6fdd596afa7c714b0398159;hb=f03b6a5feda314415ba0c1b53b44e57e59fab11f#l627>
@@ u32 ath_calcrxfilter(struct ath_softc *sc)

                rfilt &= ~ATH9K_RX_FILTER_UCAST;
        }

- if (((sc->sc_ah->ah_opmode == ATH9K_M_STA) &&
- (sc->rx_filter & FIF_BCN_PRBRESP_PROMISC)) ||
- (sc->sc_ah->ah_opmode == ATH9K_M_IBSS))
+ if (sc->sc_ah->ah_opmode == ATH9K_M_STA ||
+ sc->sc_ah->ah_opmode == ATH9K_M_IBSS)

                rfilt |= ATH9K_RX_FILTER_BEACON;
 
        /* If in HOSTAP mode, want to enable reception of PSPOLL frames

but I haven't these lines...in my recv.c file tere is:

if (((sc->sc_ah->opmode != NL80211_IFTYPE_AP) &&

         (sc->rx.rxfilter & FIF_PROMISC_IN_BSS)) ||
        (sc->sc_ah->opmode == NL80211_IFTYPE_MONITOR)) {
        rfilt |= ATH9K_RX_FILTER_PROM;
        /* ??? To prevent from sending ACK */
        rfilt &= ~ATH9K_RX_FILTER_UCAST;
    }

    if (sc->rx.rxfilter & FIF_CONTROL)
        rfilt |= ATH9K_RX_FILTER_CONTROL;

    if ((sc->sc_ah->opmode == NL80211_IFTYPE_STATION) &&
        !(sc->rx.rxfilter & FIF_BCN_PRBRESP_PROMISC))
        rfilt |= ATH9K_RX_FILTER_MYBEACON;
    else
        rfilt |= ATH9K_RX_FILTER_BEACON;

I am not an expert but I understand that is a patch for an old version of the driver...I have the problem that this old patch resolves...Can someone help me and say me what line or file I have to patch? how can I resolve the connection lost?
Thank you !!

#1 lore raw
Quoted 8 lines · Alex

hi everybody,
I have the problem of the dropping connection every 20-30 minutes using the ath9k drivers!! I see all of your patches around, but i'm not able to patch original files because of they are different...for example file /compat-wireless-2.6/driver/net/wireless/ath9k/core.h doesn't exist!!! i think it was replaced by the file "ath9k.h" seeing the inclusion in main.c.. I see also the recv.c patch but is different too... In this patch i have to apply this patch

Use compat-wireless to get the latest driver.
See: http://wireless.kernel.org/en/users/Download

Sujith