hw.c (db6da59cf27b5661ced03754ae0550f8914eda9e) hw.c (084f1f552f8dd8e8b993d14a30720b7484d77020)
1// SPDX-License-Identifier: GPL-2.0
2/* Copyright(c) 2009-2012 Realtek Corporation.*/
3
4#include "../wifi.h"
5#include "../efuse.h"
6#include "../base.h"
7#include "../regd.h"
8#include "../cam.h"

--- 625 unchanged lines hidden (view full) ---

634 return true;
635}
636
637static void _rtl92ce_gen_refresh_led_state(struct ieee80211_hw *hw)
638{
639 struct rtl_priv *rtlpriv = rtl_priv(hw);
640 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
641 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
1// SPDX-License-Identifier: GPL-2.0
2/* Copyright(c) 2009-2012 Realtek Corporation.*/
3
4#include "../wifi.h"
5#include "../efuse.h"
6#include "../base.h"
7#include "../regd.h"
8#include "../cam.h"

--- 625 unchanged lines hidden (view full) ---

634 return true;
635}
636
637static void _rtl92ce_gen_refresh_led_state(struct ieee80211_hw *hw)
638{
639 struct rtl_priv *rtlpriv = rtl_priv(hw);
640 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
641 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
642 struct rtl_led *pled0 = &rtlpriv->ledctl.sw_led0;
642 enum rtl_led_pin pin0 = rtlpriv->ledctl.sw_led0;
643
644 if (rtlpci->up_first_time)
645 return;
646
647 if (ppsc->rfoff_reason == RF_CHANGE_BY_IPS)
643
644 if (rtlpci->up_first_time)
645 return;
646
647 if (ppsc->rfoff_reason == RF_CHANGE_BY_IPS)
648 rtl92ce_sw_led_on(hw, pled0);
648 rtl92ce_sw_led_on(hw, pin0);
649 else if (ppsc->rfoff_reason == RF_CHANGE_BY_INIT)
649 else if (ppsc->rfoff_reason == RF_CHANGE_BY_INIT)
650 rtl92ce_sw_led_on(hw, pled0);
650 rtl92ce_sw_led_on(hw, pin0);
651 else
651 else
652 rtl92ce_sw_led_off(hw, pled0);
652 rtl92ce_sw_led_off(hw, pin0);
653}
654
655static bool _rtl92ce_init_mac(struct ieee80211_hw *hw)
656{
657 struct rtl_priv *rtlpriv = rtl_priv(hw);
658 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
659 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
660

--- 1682 unchanged lines hidden ---
653}
654
655static bool _rtl92ce_init_mac(struct ieee80211_hw *hw)
656{
657 struct rtl_priv *rtlpriv = rtl_priv(hw);
658 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
659 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
660

--- 1682 unchanged lines hidden ---