From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Date: Wed, 11 Mar 2009 02:01:33 +0000 Subject: [ath9k-devel] ath9k: drop connection on kernel 2.6.28-1 Message-ID: <49B71B7D.4090504@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org 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 +++ b/drivers/net/wireless/ath9k/recv.c @@ -627,9 +627,8 @@ 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 !!