Genetic linkage explains how two genes on a chromosome that are closely related are frequently inherited together.
Mendel's law of independent assortment does not apply to linkage.
Inherited genes are said to be independent of one another under the law. Since two genes are located on the same chromosome, the linkage is an exception to this rule.
Thus the independent assortment is violated by linkage.