Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80dcc0ae authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman
Browse files

staging: vt6656: rename BBvUpdatePreEDThreshold to vnt_update_pre_ed_threshold

parent 0e951753
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -581,7 +581,7 @@ void vnt_exit_deep_sleep(struct vnt_private *priv)
	vnt_control_out_u8(priv, MESSAGE_REQUEST_BBREG, 0x0d, 0x01);/* CR13 */
}

void BBvUpdatePreEDThreshold(struct vnt_private *priv, int scanning)
void vnt_update_pre_ed_threshold(struct vnt_private *priv, int scanning)
{
	u8 cr_201 = 0x0, cr_206 = 0x0;
	u8 ed_inx = priv->byBBPreEDIndex;
+1 −1
Original line number Diff line number Diff line
@@ -99,6 +99,6 @@ void vnt_set_antenna_mode(struct vnt_private *, u8);
int vnt_vt3184_init(struct vnt_private *);
void vnt_set_deep_sleep(struct vnt_private *);
void vnt_exit_deep_sleep(struct vnt_private *);
void BBvUpdatePreEDThreshold(struct vnt_private *, int scanning);
void vnt_update_pre_ed_threshold(struct vnt_private *, int scanning);

#endif /* __BASEBAND_H__ */
+3 −3
Original line number Diff line number Diff line
@@ -882,7 +882,7 @@ static void vnt_bss_info_changed(struct ieee80211_hw *hw,

		vnt_set_short_slot_time(priv);
		vnt_set_vga_gain_offset(priv, priv->abyBBVGA[0]);
		BBvUpdatePreEDThreshold(priv, false);
		vnt_update_pre_ed_threshold(priv, false);
	}

	if (changed & BSS_CHANGED_TXPOWER)
@@ -1003,7 +1003,7 @@ static void vnt_sw_scan_start(struct ieee80211_hw *hw)

	vnt_set_bss_mode(priv);
	/* Set max sensitivity*/
	BBvUpdatePreEDThreshold(priv, true);
	vnt_update_pre_ed_threshold(priv, true);
}

static void vnt_sw_scan_complete(struct ieee80211_hw *hw)
@@ -1011,7 +1011,7 @@ static void vnt_sw_scan_complete(struct ieee80211_hw *hw)
	struct vnt_private *priv = hw->priv;

	/* Return sensitivity to channel level*/
	BBvUpdatePreEDThreshold(priv, false);
	vnt_update_pre_ed_threshold(priv, false);
}

static int vnt_get_stats(struct ieee80211_hw *hw,