Would it be a common thing to implement calculation of carrier width?
static u32 carrier_width(u32 symbol_rate, fe_rolloff_t rolloff)
{
u32 rlf;
switch(rolloff) {
case ROLLOFF_20:
rlf = 20;
break;
case ROLLOFF_25:
rlf = 25;
break;
default:
rlf = 35;
break;
}
return (symbol_rate + (symbol_rate * rlf) / 100);
}
Igor