@anjancx @janusz Please take a look.
This MR is with general utility for calculating max data rate, later I will push brcm specific one based on this.