To protect yourself and others from the adverse health effects of smoke inhalation, the best thing you can do is limit your exposure.
Wearing a mask to protect yourself from bushfire smoke can be effective, depending on the quality of the equipment you use.
Bandannas and ordinary paper dust masks do not provide adequate protection for your lungs as they fail to filter out the fine particles in bushfire smoke that cause the damage.
More information