ath9k: remove unnecessary STATION mode check.
Remove unncessary STATION mode check in ath9k_bss_assoc_info() as it is called only for STATION mode. Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
d8c9210757
commit
2664f201ef
@@ -920,14 +920,12 @@ static void ath9k_bss_assoc_info(struct ath_softc *sc,
|
|||||||
struct ieee80211_vif *vif,
|
struct ieee80211_vif *vif,
|
||||||
struct ieee80211_bss_conf *bss_conf)
|
struct ieee80211_bss_conf *bss_conf)
|
||||||
{
|
{
|
||||||
struct ath_vif *avp = (void *)vif->drv_priv;
|
|
||||||
|
|
||||||
if (bss_conf->assoc) {
|
if (bss_conf->assoc) {
|
||||||
DPRINTF(sc, ATH_DBG_CONFIG, "Bss Info ASSOC %d, bssid: %pM\n",
|
DPRINTF(sc, ATH_DBG_CONFIG, "Bss Info ASSOC %d, bssid: %pM\n",
|
||||||
bss_conf->aid, sc->curbssid);
|
bss_conf->aid, sc->curbssid);
|
||||||
|
|
||||||
/* New association, store aid */
|
/* New association, store aid */
|
||||||
if (avp->av_opmode == NL80211_IFTYPE_STATION) {
|
|
||||||
sc->curaid = bss_conf->aid;
|
sc->curaid = bss_conf->aid;
|
||||||
ath9k_hw_write_associd(sc);
|
ath9k_hw_write_associd(sc);
|
||||||
|
|
||||||
@@ -937,7 +935,6 @@ static void ath9k_bss_assoc_info(struct ath_softc *sc,
|
|||||||
* after time sync with the AP).
|
* after time sync with the AP).
|
||||||
*/
|
*/
|
||||||
sc->sc_flags |= SC_OP_BEACON_SYNC;
|
sc->sc_flags |= SC_OP_BEACON_SYNC;
|
||||||
}
|
|
||||||
|
|
||||||
/* Configure the beacon */
|
/* Configure the beacon */
|
||||||
ath_beacon_config(sc, vif);
|
ath_beacon_config(sc, vif);
|
||||||
|
Reference in New Issue
Block a user