[][MAC80211][WiFi6/7][app][Add eMMC support in atenl]

[Description]
Add eMMC support in atenl
1. add mtd/mmc open/write function
2. add new opt for specifying partition name and offset
   Usage:
    - atenl -i phy0 -c "sync eeprom all" -p <name>:<offset>
    - <offset> can be specified as decimal (e.g. 2560) or
      hexadecimal (0xa000)

[Release-log]
N/A

Change-Id: I10c19e15d2500cb287793a5e77f1b336eb6870a5
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/9897396
diff --git a/feed/app/atenl/src/hqa.c b/feed/app/atenl/src/hqa.c
index 2f25043..678bb93 100644
--- a/feed/app/atenl/src/hqa.c
+++ b/feed/app/atenl/src/hqa.c
@@ -480,7 +480,7 @@
 atenl_hqa_check_efuse_mode(struct atenl *an, struct atenl_data *data)
 {
 	struct atenl_cmd_hdr *hdr = atenl_hdr(data);
-	bool flash_mode = an->mtd_part != NULL;
+	bool flash_mode = an->flash_part != NULL;
 	enum atenl_cmd cmd = data->cmd;
 	u32 mode;