src/patch.c
__attribute__((at(0x00210c00, "", CHIP_VER_BCM4375B1_BT, FW_VER_S20)))
__attribute__((optimize("O0")))
__attribute__((naked))
void disable_whitening(int* func) {
	if (rx_enabled != 0 || tx_enabled != 0) {
	   	__asm__("ldr r3,=0x00000000\n\t");
	}
	else {
	   	__asm__("ldr r3,=0x00203150\n\t"
			"ldr r3,[r3]\n\t");
		

	}
   	__asm__("b 0x715B8\n\t");
}
/*
Function used to disable the whitening / dewhitening if a RX or a TX is selected
*/
Function used to disable the whitening / dewhitening if a RX or a TX is selected
Function used to disable the whitening / dewhitening if a RX or a TX is selected
__attribute__((at(0x00210c00, "", CHIP_VER_BCM4375B1_BT, FW_VER_S20)))
__attribute__((optimize("O0")))
__attribute__((naked))
void disable_whitening(int* func) {
	if (rx_enabled != 0 || tx_enabled != 0) {
	   	__asm__("ldr r3,=0x00000000\n\t");
	}
	else {
	   	__asm__("ldr r3,=0x00203150\n\t"
			"ldr r3,[r3]\n\t");
	}
   	__asm__("b 0x715B8\n\t");
}
__attribute__ ( ( at ( 0x00210c00 , " " , CHIP_VER_BCM4375B1_BT , FW_VER_S20 ) ) ) __attribute__ ( ( optimize ( " " ) ) ) __attribute__ ( ( naked ) ) void disable_whitening ( int * func ) { if ( rx_enabled != 0 || tx_enabled != 0 ) { __asm__ ( " \n \t " ) ; } else { __asm__ ( " \n \t " " \n \t " ) ; } __asm__ ( " \n \t " ) ; }
Function used to disable the whitening / dewhitening if a RX or a TX is selected
Function used to disable the whitening / dewhitening if a RX or a TX is selected