alpine 3.6
obsolete weakness #80


Weakness Breakdown


An obsolete weakness occurs when someone uses deprecated or obsolete functions when building a system. As a programming language evolves, some functions occasionally become obsolete.

Warning code(s):

This C routine is considered obsolete.

File Name:



The highlighted line of code below is the trigger point of this particular Alpine 3.6 obsolete weakness.

 		return rc;

	rc = dvb_fe_sec_tone(&parms->p, SEC_TONE_OFF);
	if (rc)
		return rc;

	usleep(15 * 1000);

	if (!t)
		rc = dvbsat_diseqc_write_to_port_group(parms, &cmd, high_band,
							pol_v, sat_number);
		rc = dvbsat_scr_odu_channel_change(parms, &cmd, high_band,
							pol_v, sat_number, t);

	if (rc) {
		dvb_logerr(_("sending diseq failed"));
		return rc;
	usleep((15 + parms->p.diseqc_wait) * 1000);

	rc = dvb_fe_diseqc_burst(&parms->p, mini_b);
	if (rc)
		return rc;
	usleep(15 * 1000);

	rc = dvb_fe_sec_tone(&parms->p, tone_on ? SEC_TONE_ON : SEC_TONE_OFF);

	return rc;

int dvb_sat_real_freq(struct dvb_v5_fe_parms *p, int freq)
	struct dvb_v5_fe_parms_priv *parms = (void *)p;
	int new_freq, i;

	if (!dvb_fe_is_satellite(p->current_sys))
		return freq;

	new_freq = freq + parms->freq_offset;
	for (i = 0; i < ARRAY_SIZE(lnb->freqrange) && lnb->freqrange[i].low; i++) {
		if (freq < lnb->freqrange[i].low * 1000 || freq > lnb->freqrange[i].high * 1000)

		return new_freq;

	return parms->freq_offset - freq;

The registered trademark Linux® is used pursuant to a sublicense from the Linux Foundation, the exclusive licensee of Linus Torvalds, owner of the mark on a world­wide basis.