edit the gain settings of Tx and Rx

add an upper bound and lower bound for Tx
fix a bug for Rx