FIX:reverting back to upstream/master and modifying auto bad detection logic with two assertions for noisey and flat channel criteria.
FIX:reverting back to upstream/master and modifying auto bad detection logic with two assertions for noisey and flat channel criteria.

Eric89GXL/mnefun,ktavabi/mnefun,LABSN/mnefun,Eric89GXL/mnefun,kambysese/mnefun,kambysese/mnefun,ktavabi/mnefun,LABSN/mnefun,drammock/mnefun,drammock/mnefun