The general form of an inner product in $\mathbb{C}^n$ is $\langle x,y\rangle=y^{*}Bx$ where B is a Hermitian positive definite matrix. Then for any square matrix $A$ we have $\langle Av,w\rangle=w^{*}BAv$ and $\langle v,A^{*}w\rangle=(A^{*}w)^{*}Bv=w^{*}ABv$.
Since for any matrix $A$, it is a fact that $\langle Av,w\rangle=\langle v,A^{*}w\rangle$ then we have $w^{*}BAv=\langle Av,w\rangle=\langle v,A^{*}w\rangle=w^{*}ABv$. But that implies $BA=AB$, which is wrong. What am I doing wrong?