added clock sync qualification test and fixed bug in driver